SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | - | User: TheDarkRevenant |
2 | + | User: deadpoo5666 |
3 | Script: DSSJ3 | |
4 | Pass: QNAh3g8U | |
5 | ||
6 | ]] | |
7 | ||
8 | local p = game.Players.LocalPlayer | |
9 | local char = p.Character | |
10 | local mouse = p:GetMouse() | |
11 | local larm = char["Left Arm"] | |
12 | local rarm = char["Right Arm"] | |
13 | local lleg = char["Left Leg"] | |
14 | local rleg = char["Right Leg"] | |
15 | local hed = char.Head | |
16 | local torso = char.Torso | |
17 | local hum = char.Humanoid | |
18 | local cam = game.Workspace.CurrentCamera | |
19 | local root = char.HumanoidRootPart | |
20 | local deb = false | |
21 | local shot = 0 | |
22 | local debris=game:service"Debris" | |
23 | local l = game:GetService("Lighting") | |
24 | local rs = game:GetService("RunService").RenderStepped | |
25 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
26 | math.randomseed(os.time()) | |
27 | for i,v in pairs(char:children()) do | |
28 | if v:IsA("Hat") then | |
29 | v:Destroy() | |
30 | end | |
31 | end | |
32 | for i,v in pairs (hed:GetChildren()) do | |
33 | if v:IsA("Sound") then | |
34 | v:Destroy() | |
35 | end | |
36 | end | |
37 | ---------------------------------------------------- | |
38 | Debounces = { | |
39 | CanAttack = true; | |
40 | NoIdl = false; | |
41 | Slashing = false; | |
42 | Slashed = false; | |
43 | RPunch = false; | |
44 | RPunched = false; | |
45 | LPunch = false; | |
46 | LPunched = false; | |
47 | } | |
48 | local Touche = {char.Name, } | |
49 | ---------------------------------------------------- | |
50 | hed.face.Texture = "rbxassetid://382682899" | |
51 | char["Body Colors"].HeadColor = BrickColor.new("Navy blue") | |
52 | char["Body Colors"].TorsoColor = BrickColor.new("Navy blue") | |
53 | char["Body Colors"].LeftArmColor = BrickColor.new("Navy blue") | |
54 | char["Body Colors"].RightArmColor = BrickColor.new("Navy blue") | |
55 | ---------------------------------------------------- | |
56 | ypcall(function() | |
57 | char.Shirt:Destroy() | |
58 | char.Pants:Destroy() | |
59 | shirt = Instance.new("Shirt", char) | |
60 | shirt.Name = "Shirt" | |
61 | pants = Instance.new("Pants", char) | |
62 | pants.Name = "Pants" | |
63 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=181553398" | |
64 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=181553813" | |
65 | end) | |
66 | ---------------------------------------------------- | |
67 | function lerp(a, b, t) -- Linear interpolation | |
68 | return a + (b - a)*t | |
69 | end | |
70 | ||
71 | function slerp(a, b, t) --Spherical interpolation | |
72 | dot = a:Dot(b) | |
73 | if dot > 0.99999 or dot < -0.99999 then | |
74 | return t <= 0.5 and a or b | |
75 | else | |
76 | r = math.acos(dot) | |
77 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
78 | end | |
79 | end | |
80 | ||
81 | function matrixInterpolate(a, b, t) | |
82 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
83 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
84 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
85 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
86 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
87 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
88 | local t = v1:Dot(v2) | |
89 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
90 | return CFrame.new() | |
91 | end | |
92 | return CFrame.new( | |
93 | v0.x, v0.y, v0.z, | |
94 | v1.x, v1.y, v1.z, | |
95 | v2.x, v2.y, v2.z, | |
96 | v3.x, v3.y, v3.z) | |
97 | end | |
98 | ---------------------------------------------------- | |
99 | function genWeld(a,b) | |
100 | local w = Instance.new("Weld",a) | |
101 | w.Part0 = a | |
102 | w.Part1 = b | |
103 | return w | |
104 | end | |
105 | function weld(a, b) | |
106 | local weld = Instance.new("Weld") | |
107 | weld.Name = "W" | |
108 | weld.Part0 = a | |
109 | weld.Part1 = b | |
110 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
111 | weld.Parent = a | |
112 | return weld; | |
113 | end | |
114 | ---------------------------------------------------- | |
115 | function Lerp(c1,c2,al) | |
116 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
117 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
118 | for i,v in pairs(com1) do | |
119 | com1[i] = v+(com2[i]-v)*al | |
120 | end | |
121 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
122 | end | |
123 | ---------------------------------------------------- | |
124 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
125 | local wld = Instance.new("Weld", wp1) | |
126 | wld.Part0 = wp0 | |
127 | wld.Part1 = wp1 | |
128 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
129 | end | |
130 | ---------------------------------------------------- | |
131 | function weld5(part0, part1, c0, c1) | |
132 | weeld=Instance.new("Weld", part0) | |
133 | weeld.Part0=part0 | |
134 | weeld.Part1=part1 | |
135 | weeld.C0=c0 | |
136 | weeld.C1=c1 | |
137 | return weeld | |
138 | end | |
139 | ---------------------------------------------------- | |
140 | function HasntTouched(plrname) | |
141 | local ret = true | |
142 | for _, v in pairs(Touche) do | |
143 | if v == plrname then | |
144 | ret = false | |
145 | end | |
146 | end | |
147 | return ret | |
148 | end | |
149 | ---------------------------------------------------- | |
150 | newWeld(torso, larm, -1.5, 0.5, 0) | |
151 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
152 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
153 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
154 | newWeld(torso, hed, 0, 1.5, 0) | |
155 | newWeld(torso, lleg, -0.5, -1, 0) | |
156 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
157 | newWeld(torso, rleg, 0.5, -1, 0) | |
158 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
159 | newWeld(root, torso, 0, -1, 0) | |
160 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
161 | ---------------------------------------------------- | |
162 | z = Instance.new("Sound", char) | |
163 | z.SoundId = "rbxassetid://447205625" | |
164 | z.Looped = true | |
165 | z.Pitch = 1 | |
166 | z.Volume = 1 | |
167 | wait(.3) | |
168 | z:Play() | |
169 | ---------------------------------------------------- | |
170 | local Transforming = true | |
171 | hum.WalkSpeed = 0 | |
172 | local fx = Instance.new("Part",torso) | |
173 | fx.Anchored = true | |
174 | fx.Material = "Neon" | |
175 | fx.CanCollide = false | |
176 | fx.Locked = true | |
177 | fx.Transparency = 1 | |
178 | fx.Material = "SmoothPlastic" | |
179 | fx.Size = Vector3.new(1,1,1) | |
180 | fx.TopSurface = "SmoothNoOutlines" | |
181 | fx.BottomSurface = "SmoothNoOutlines" | |
182 | fx.BrickColor = BrickColor.new("Cyan") | |
183 | fxm = Instance.new("SpecialMesh",fx) | |
184 | fxm.MeshType = "Sphere" | |
185 | fxm.Scale = Vector3.new(1,1,1) | |
186 | for i = 1, 20 do rs:wait() | |
187 | fx.Transparency = fx.Transparency - (1/20) | |
188 | fx.CFrame = torso.CFrame | |
189 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
190 | rs:wait() | |
191 | end | |
192 | ---------------------------------------------------- | |
193 | local m = Instance.new("Model") | |
194 | m.Name = "Hair" | |
195 | p1 = Instance.new("Part", m) | |
196 | p1.BrickColor = BrickColor.new("Cyan") | |
197 | p1.FormFactor = Enum.FormFactor.Symmetric | |
198 | p1.Size = Vector3.new(1, 1, 1) | |
199 | p1.CFrame = CFrame.new(-2.49043155, 8.24595642, -3.40113306, -5.48362732e-006, -0.978699088, 0.205299795, 3.27825546e-007, -0.205299854, -0.978699148, 1, -5.28991222e-006, 1.48639083e-006) | |
200 | p1.CanCollide = false | |
201 | p1.Locked = true | |
202 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
203 | p1.TopSurface = Enum.SurfaceType.Smooth | |
204 | b1 = Instance.new("SpecialMesh", p1) | |
205 | b1.MeshId = "http://www.roblox.com/asset/?id=0" | |
206 | b1.TextureId = "" | |
207 | b1.MeshType = Enum.MeshType.FileMesh | |
208 | b1.Name = "Mesh" | |
209 | b1.VertexColor = Vector3.new(0, 0, 0) | |
210 | b1.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
211 | p2 = Instance.new("Part", m) | |
212 | p2.BrickColor = BrickColor.new("Pastel brown") | |
213 | p2.Transparency = 1 | |
214 | p2.Name = "Head" | |
215 | p2.FormFactor = Enum.FormFactor.Symmetric | |
216 | p2.Size = Vector3.new(2, 1, 1) | |
217 | p2.CFrame = CFrame.new(-1.70008016, 8.14794922, -3.40013027, 4.24603923e-006, 7.4505806e-008, -1, -1.50268988e-007, 1, 1.49011612e-008, 1.00000012, 6.79109462e-008, 4.23316806e-006) | |
218 | p2.CanCollide = false | |
219 | p2.Locked = true | |
220 | p2.TopSurface = Enum.SurfaceType.Smooth | |
221 | b2 = Instance.new("SpecialMesh", p2) | |
222 | b2.MeshType = Enum.MeshType.Head | |
223 | b2.Name = "Mesh" | |
224 | b2.Scale = Vector3.new(1.25, 1.25, 1.25) | |
225 | p3 = Instance.new("Part", m) | |
226 | p3.BrickColor = BrickColor.new("Cyan") | |
227 | p3.FormFactor = Enum.FormFactor.Symmetric | |
228 | p3.Size = Vector3.new(2, 2, 2) | |
229 | p3.CFrame = CFrame.new(-1.70003617, 8.71796131, -3.4000442, 2.57710985e-006, 6.95607483e-008, -1.00000012, -1.20466638e-007, 1, 9.95640903e-009, 1.00000024, 3.81086345e-008, 2.56423846e-006) | |
230 | p3.CanCollide = false | |
231 | p3.Locked = true | |
232 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
233 | p3.TopSurface = Enum.SurfaceType.Smooth | |
234 | b3 = Instance.new("SpecialMesh", p3) | |
235 | b3.MeshId = "http://www.roblox.com/asset/?id=0" | |
236 | b3.TextureId = "" | |
237 | b3.MeshType = Enum.MeshType.FileMesh | |
238 | b3.Name = "Mesh" | |
239 | b3.VertexColor = Vector3.new(0, 0, 0) | |
240 | b3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995) | |
241 | p4 = Instance.new("Part", m) | |
242 | p4.BrickColor = BrickColor.new("Cyan") | |
243 | p4.FormFactor = Enum.FormFactor.Symmetric | |
244 | p4.Size = Vector3.new(1, 1, 1) | |
245 | p4.CFrame = CFrame.new(-1.77981007, 8.84795475, -3.40016508, 5.79576135e-006, 7.9450956e-008, -1.00000012, -1.80071311e-007, 1, 1.98458743e-008, 1.00000024, 9.77132402e-008, 5.78289018e-006) | |
246 | p4.CanCollide = false | |
247 | p4.Locked = true | |
248 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
249 | p4.TopSurface = Enum.SurfaceType.Smooth | |
250 | b4 = Instance.new("SpecialMesh", p4) | |
251 | b4.MeshId = "http://www.roblox.com/asset/?id=0" | |
252 | b4.TextureId = "" | |
253 | b4.MeshType = Enum.MeshType.FileMesh | |
254 | b4.Name = "Mesh" | |
255 | b4.VertexColor = Vector3.new(0, 0, 0) | |
256 | p5 = Instance.new("Part", m) | |
257 | p5.BrickColor = BrickColor.new("Cyan") | |
258 | p5.FormFactor = Enum.FormFactor.Symmetric | |
259 | p5.Size = Vector3.new(1, 1, 1) | |
260 | p5.CFrame = CFrame.new(-1.70003772, 8.46796131, -3.40004301, -3.43517968e-007, 2.98088111e-007, -1, -1.00421907e-007, 1, 2.38484063e-007, 1.00000012, 1.80640072e-008, -3.56389592e-007) | |
261 | p5.CanCollide = false | |
262 | p5.Locked = true | |
263 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
264 | p5.TopSurface = Enum.SurfaceType.Smooth | |
265 | b5 = Instance.new("SpecialMesh", p5) | |
266 | b5.MeshId = "http://www.roblox.com/asset/?id=0" | |
267 | b5.TextureId = "" | |
268 | b5.MeshType = Enum.MeshType.FileMesh | |
269 | b5.Name = "Mesh" | |
270 | b5.VertexColor = Vector3.new(0, 0, 0) | |
271 | b5.Scale = Vector3.new(1, 0.899999976, 1) | |
272 | p6 = Instance.new("Part", m) | |
273 | p6.BrickColor = BrickColor.new("Cyan") | |
274 | p6.FormFactor = Enum.FormFactor.Symmetric | |
275 | p6.Size = Vector3.new(1, 1, 1) | |
276 | p6.CFrame = CFrame.new(-1.89967656, 8.58795834, -3.44990659, -5.81936433e-007, 5.36502284e-007, -0.99999994, -1.3998249e-007, 1, 4.76898265e-007, 1, 5.76247672e-008, -5.94808171e-007) | |
277 | p6.CanCollide = false | |
278 | p6.Locked = true | |
279 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
280 | p6.TopSurface = Enum.SurfaceType.Smooth | |
281 | b6 = Instance.new("SpecialMesh", p6) | |
282 | b6.MeshId = "http://www.roblox.com/asset/?id=0" | |
283 | b6.TextureId = "" | |
284 | b6.MeshType = Enum.MeshType.FileMesh | |
285 | b6.Name = "Mesh" | |
286 | b6.VertexColor = Vector3.new(0, 0, 0) | |
287 | p7 = Instance.new("Part", m) | |
288 | p7.BrickColor = BrickColor.new("Cyan") | |
289 | p7.FormFactor = Enum.FormFactor.Symmetric | |
290 | p7.Size = Vector3.new(1, 1, 1) | |
291 | p7.CFrame = CFrame.new(-1.89918542, 8.31796837, -3.50097537, -4.62727087e-007, 5.36502228e-007, -0.999999881, -1.39982518e-007, 1, 4.76898208e-007, 0.99999994, 5.76247459e-008, -4.75598938e-007) | |
292 | p7.CanCollide = false | |
293 | p7.Locked = true | |
294 | p7.BottomSurface = Enum.SurfaceType.Smooth | |
295 | p7.TopSurface = Enum.SurfaceType.Smooth | |
296 | b7 = Instance.new("SpecialMesh", p7) | |
297 | b7.MeshId = "http://www.roblox.com/asset/?id=0" | |
298 | b7.TextureId = "" | |
299 | b7.MeshType = Enum.MeshType.FileMesh | |
300 | b7.Name = "Mesh" | |
301 | b7.VertexColor = Vector3.new(0, 0, 0) | |
302 | p8 = Instance.new("Part", m) | |
303 | p8.BrickColor = BrickColor.new("Cyan") | |
304 | p8.FormFactor = Enum.FormFactor.Symmetric | |
305 | p8.Size = Vector3.new(1, 1, 1) | |
306 | p8.CFrame = CFrame.new(-2.62433338, 7.66397905, -3.4010179, -1.17798254e-006, -0.805111349, 0.593123376, -2.5008859e-007, -0.593123615, -0.805111527, 0.999999881, -9.58229293e-007, 4.4941558e-007) | |
307 | p8.CanCollide = false | |
308 | p8.Locked = true | |
309 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
310 | p8.TopSurface = Enum.SurfaceType.Smooth | |
311 | b8 = Instance.new("SpecialMesh", p8) | |
312 | b8.MeshId = "http://www.roblox.com/asset/?id=0" | |
313 | b8.TextureId = "" | |
314 | b8.MeshType = Enum.MeshType.FileMesh | |
315 | b8.Name = "Mesh" | |
316 | b8.VertexColor = Vector3.new(0, 0, 0) | |
317 | b8.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
318 | p9 = Instance.new("Part", m) | |
319 | p9.BrickColor = BrickColor.new("Cyan") | |
320 | p9.FormFactor = Enum.FormFactor.Symmetric | |
321 | p9.Size = Vector3.new(2, 1, 2) | |
322 | p9.CFrame = CFrame.new(-1.76505995, 8.56096649, -3.40065479, -9.73168881e-007, -0.0995008349, -0.995037436, -1.70322267e-007, 0.995037675, -0.0995009243, 1, 1.13823972e-007, -6.80968242e-007) | |
323 | p9.CanCollide = false | |
324 | p9.Locked = true | |
325 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
326 | p9.TopSurface = Enum.SurfaceType.Smooth | |
327 | b9 = Instance.new("SpecialMesh", p9) | |
328 | b9.MeshId = "http://www.roblox.com/asset/?id=0" | |
329 | b9.TextureId = "" | |
330 | b9.MeshType = Enum.MeshType.FileMesh | |
331 | b9.Name = "Mesh" | |
332 | b9.VertexColor = Vector3.new(0, 0, 0) | |
333 | b9.Scale = Vector3.new(1.01999998, 1.04999995, 1.04999995) | |
334 | p10 = Instance.new("Part", m) | |
335 | p10.BrickColor = BrickColor.new("Cyan") | |
336 | p10.FormFactor = Enum.FormFactor.Symmetric | |
337 | p10.Size = Vector3.new(1, 1, 1) | |
338 | p10.CFrame = CFrame.new(-2.0207715, 9.06097031, -3.39961624, -1.10652763e-006, -0.683569431, -0.729885519, -2.85231891e-007, 0.729885638, -0.68356967, 1.00000012, -3.22293062e-007, -8.40051371e-007) | |
339 | p10.CanCollide = false | |
340 | p10.Locked = true | |
341 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
342 | p10.TopSurface = Enum.SurfaceType.Smooth | |
343 | b10 = Instance.new("SpecialMesh", p10) | |
344 | b10.MeshId = "http://www.roblox.com/asset/?id=0" | |
345 | b10.TextureId = "" | |
346 | b10.MeshType = Enum.MeshType.FileMesh | |
347 | b10.Name = "Mesh" | |
348 | b10.VertexColor = Vector3.new(0, 0, 0) | |
349 | b10.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
350 | p11 = Instance.new("Part", m) | |
351 | p11.BrickColor = BrickColor.new("Cyan") | |
352 | p11.FormFactor = Enum.FormFactor.Symmetric | |
353 | p11.Size = Vector3.new(1, 1, 1) | |
354 | p11.CFrame = CFrame.new(-2.16468835, 8.78595829, -3.40089417, -1.41617738e-006, -0.989475727, -0.144699216, -4.36450762e-007, 0.144699067, -0.989476085, 1.00000024, -9.47996682e-007, -7.38401468e-007) | |
355 | p11.CanCollide = false | |
356 | p11.Locked = true | |
357 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
358 | p11.TopSurface = Enum.SurfaceType.Smooth | |
359 | b11 = Instance.new("SpecialMesh", p11) | |
360 | b11.MeshId = "http://www.roblox.com/asset/?id=0" | |
361 | b11.TextureId = "" | |
362 | b11.MeshType = Enum.MeshType.FileMesh | |
363 | b11.Name = "Mesh" | |
364 | b11.VertexColor = Vector3.new(0, 0, 0) | |
365 | b11.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
366 | p12 = Instance.new("Part", m) | |
367 | p12.BrickColor = BrickColor.new("Cyan") | |
368 | p12.FormFactor = Enum.FormFactor.Custom | |
369 | p12.Size = Vector3.new(1, 3.5, 1) | |
370 | p12.CFrame = CFrame.new(-3.74216318, 6.74288082, -3.40101933, -1.20476273e-006, -0.553697288, 0.832718134, -3.31002866e-007, -0.832718611, -0.553697169, 1.00000036, -8.7345768e-007, 3.69213154e-007) | |
371 | p12.CanCollide = false | |
372 | p12.Locked = true | |
373 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
374 | p12.TopSurface = Enum.SurfaceType.Smooth | |
375 | b12 = Instance.new("SpecialMesh", p12) | |
376 | b12.MeshId = "http://www.roblox.com/asset/?id=0" | |
377 | b12.TextureId = "" | |
378 | b12.MeshType = Enum.MeshType.FileMesh | |
379 | b12.Name = "Mesh" | |
380 | b12.VertexColor = Vector3.new(0, 0, 0) | |
381 | b12.Scale = Vector3.new(1, 3, 1.29999995) | |
382 | p13 = Instance.new("Part", m) | |
383 | p13.BrickColor = BrickColor.new("Cyan") | |
384 | p13.FormFactor = Enum.FormFactor.Custom | |
385 | p13.Size = Vector3.new(1, 2, 1) | |
386 | p13.CFrame = CFrame.new(-3.32689047, 6.86741829, -3.40101862, -9.81709945e-007, -0.319307148, 0.947651446, -5.6545997e-007, -0.947651923, -0.31930691, 1.00000048, -8.39551717e-007, 1.79318391e-007) | |
387 | p13.CanCollide = false | |
388 | p13.Locked = true | |
389 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
390 | p13.TopSurface = Enum.SurfaceType.Smooth | |
391 | b13 = Instance.new("SpecialMesh", p13) | |
392 | b13.MeshId = "http://www.roblox.com/asset/?id=0" | |
393 | b13.TextureId = "" | |
394 | b13.MeshType = Enum.MeshType.FileMesh | |
395 | b13.Name = "Mesh" | |
396 | b13.VertexColor = Vector3.new(0, 0, 0) | |
397 | b13.Scale = Vector3.new(1, 3, 1.29999995) | |
398 | p14 = Instance.new("Part", m) | |
399 | p14.BrickColor = BrickColor.new("Cyan") | |
400 | p14.FormFactor = Enum.FormFactor.Custom | |
401 | p14.Size = Vector3.new(1, 2, 1) | |
402 | p14.CFrame = CFrame.new(-3.02689028, 7.96740961, -3.40101862, -1.33478545e-006, -0.750354111, 0.661036491, -5.20037702e-008, -0.661037207, -0.750354171, 1.0000006, -6.31296757e-007, 2.01137496e-007) | |
403 | p14.CanCollide = false | |
404 | p14.Locked = true | |
405 | p14.BottomSurface = Enum.SurfaceType.Smooth | |
406 | p14.TopSurface = Enum.SurfaceType.Smooth | |
407 | b14 = Instance.new("SpecialMesh", p14) | |
408 | b14.MeshId = "http://www.roblox.com/asset/?id=0" | |
409 | b14.TextureId = "" | |
410 | b14.MeshType = Enum.MeshType.FileMesh | |
411 | b14.Name = "Mesh" | |
412 | b14.VertexColor = Vector3.new(0, 0, 0) | |
413 | b14.Scale = Vector3.new(1, 3, 1.29999995) | |
414 | p15 = Instance.new("Part", m) | |
415 | p15.BrickColor = BrickColor.new("Cyan") | |
416 | p15.FormFactor = Enum.FormFactor.Custom | |
417 | p15.Size = Vector3.new(1, 2.5, 1) | |
418 | p15.CFrame = CFrame.new(-2.96531463, 7.75924349, -2.90101862, 0.342019022, -0.520305753, 0.782499552, -1.1920929e-007, -0.832718909, -0.553697407, 0.939693451, 0.189374983, -0.284806281) | |
419 | p15.CanCollide = false | |
420 | p15.Locked = true | |
421 | p15.BottomSurface = Enum.SurfaceType.Smooth | |
422 | p15.TopSurface = Enum.SurfaceType.Smooth | |
423 | b15 = Instance.new("SpecialMesh", p15) | |
424 | b15.MeshId = "http://www.roblox.com/asset/?id=0" | |
425 | b15.TextureId = "" | |
426 | b15.MeshType = Enum.MeshType.FileMesh | |
427 | b15.Name = "Mesh" | |
428 | b15.VertexColor = Vector3.new(0, 0, 0) | |
429 | b15.Scale = Vector3.new(1, 3, 1.29999995) | |
430 | p16 = Instance.new("Part", m) | |
431 | p16.BrickColor = BrickColor.new("Cyan") | |
432 | p16.FormFactor = Enum.FormFactor.Custom | |
433 | p16.Size = Vector3.new(1, 2.5, 1) | |
434 | p16.CFrame = CFrame.new(-2.96531439, 7.75924349, -3.80101967, -0.258820295, -0.534830391, 0.804343879, -1.78813934e-007, -0.832718968, -0.553697228, 0.96592629, -0.143308073, 0.215523779) | |
435 | p16.CanCollide = false | |
436 | p16.Locked = true | |
437 | p16.BottomSurface = Enum.SurfaceType.Smooth | |
438 | p16.TopSurface = Enum.SurfaceType.Smooth | |
439 | b16 = Instance.new("SpecialMesh", p16) | |
440 | b16.MeshId = "http://www.roblox.com/asset/?id=0" | |
441 | b16.TextureId = "" | |
442 | b16.MeshType = Enum.MeshType.FileMesh | |
443 | b16.Name = "Mesh" | |
444 | b16.VertexColor = Vector3.new(0, 0, 0) | |
445 | b16.Scale = Vector3.new(1, 3, 1.29999995) | |
446 | p17 = Instance.new("Part", m) | |
447 | p17.BrickColor = BrickColor.new("Cyan") | |
448 | p17.FormFactor = Enum.FormFactor.Custom | |
449 | p17.Size = Vector3.new(1, 2.4000001, 1) | |
450 | p17.CFrame = CFrame.new(-2.69075108, 7.07788849, -3.40101933, -1.13248825e-006, -0.319307148, 0.947651625, -1.1920929e-006, -0.947652161, -0.319306791, 1.0000006, -1.54972076e-006, 1.04308128e-007) | |
451 | p17.CanCollide = false | |
452 | p17.Locked = true | |
453 | p17.BottomSurface = Enum.SurfaceType.Smooth | |
454 | p17.TopSurface = Enum.SurfaceType.Smooth | |
455 | b17 = Instance.new("SpecialMesh", p17) | |
456 | b17.MeshId = "http://www.roblox.com/asset/?id=0" | |
457 | b17.TextureId = "" | |
458 | b17.MeshType = Enum.MeshType.FileMesh | |
459 | b17.Name = "Mesh" | |
460 | b17.VertexColor = Vector3.new(0, 0, 0) | |
461 | b17.Scale = Vector3.new(1, 3, 1.29999995) | |
462 | p18 = Instance.new("Part", m) | |
463 | p18.BrickColor = BrickColor.new("Cyan") | |
464 | p18.FormFactor = Enum.FormFactor.Custom | |
465 | p18.Size = Vector3.new(2, 2, 2) | |
466 | p18.CFrame = CFrame.new(-1.70003319, 8.71796608, -3.40004444, -2.37434961e-006, 1.78813934e-007, 1.00000036, -2.35242567e-007, 1.00000072, 3.27825546e-007, -1.0000006, 7.95440158e-009, -2.91315405e-006) | |
467 | p18.CanCollide = false | |
468 | p18.Locked = true | |
469 | p18.BottomSurface = Enum.SurfaceType.Smooth | |
470 | p18.TopSurface = Enum.SurfaceType.Smooth | |
471 | b18 = Instance.new("SpecialMesh", p18) | |
472 | b18.MeshId = "http://www.roblox.com/asset/?id=0" | |
473 | b18.TextureId = "" | |
474 | b18.MeshType = Enum.MeshType.FileMesh | |
475 | b18.Name = "Mesh" | |
476 | b18.VertexColor = Vector3.new(0, 0, 0) | |
477 | b18.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995) | |
478 | w1 = Instance.new("Weld", p1) | |
479 | w1.Name = "Head_Weld" | |
480 | m.Parent = char | |
481 | m:MakeJoints() | |
482 | ---------------------------------------------------- | |
483 | local cor = Instance.new("Part", char.Hair) | |
484 | cor.Name = "Link" | |
485 | cor.Locked = true | |
486 | cor.BottomSurface = 0 | |
487 | cor.CanCollide = false | |
488 | cor.Size = Vector3.new(1, 9, 1) | |
489 | cor.Transparency = 1 | |
490 | cor.TopSurface = 0 | |
491 | corw = Instance.new("Weld", cor) | |
492 | corw.Part0 = hed | |
493 | corw.Part1 = cor | |
494 | corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
495 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
496 | weld1 = Instance.new("Weld", char.Hair) | |
497 | weld1.Part0 = cor | |
498 | weld1.Part1 = char.Hair.Head | |
499 | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
500 | ---------------------------------------------------- | |
501 | GroundWave1 = function() | |
502 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
503 | local Colors = {"Cyan", "Really red"} | |
504 | local wave = Instance.new("Part", torso) | |
505 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
506 | wave.Anchored = true | |
507 | wave.CanCollide = false | |
508 | wave.Locked = true | |
509 | wave.Size = Vector3.new(1, 1, 1) | |
510 | wave.TopSurface = "Smooth" | |
511 | wave.BottomSurface = "Smooth" | |
512 | wave.Transparency = 0.35 | |
513 | wave.CFrame = HandCF | |
514 | wm = Instance.new("SpecialMesh", wave) | |
515 | wm.MeshId = "rbxassetid://3270017" | |
516 | coroutine.wrap(function() | |
517 | for i = 1, 30, 1 do | |
518 | wm.Scale = Vector3.new(1 + i*1.2, 1 + i*1.2, 1) | |
519 | wave.Size = wm.Scale | |
520 | wave.CFrame = HandCF | |
521 | wave.Transparency = i/30 | |
522 | wait() | |
523 | end | |
524 | wait() | |
525 | wave:Destroy() | |
526 | end)() | |
527 | end | |
528 | ---------------------------------------------------- | |
529 | GroundWave = function() | |
530 | if Transforming == true then | |
531 | local wave = Instance.new("Part", torso) | |
532 | wave.BrickColor = BrickColor.new("Electric blue") | |
533 | wave.Anchored = true | |
534 | wave.CanCollide = false | |
535 | wave.Locked = true | |
536 | wave.Size = Vector3.new(1, 1, 1) | |
537 | wave.TopSurface = "Smooth" | |
538 | wave.BottomSurface = "Smooth" | |
539 | wave.Transparency = 0.35 | |
540 | wave.CFrame = fx.CFrame | |
541 | wm = Instance.new("SpecialMesh", wave) | |
542 | wm.MeshType = "Sphere" | |
543 | wm.Scale = Vector3.new(1,1,1) | |
544 | coroutine.wrap(function() | |
545 | for i = 1, 18, 1 do | |
546 | wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2) | |
547 | --wave.Size = wm.Scale | |
548 | wave.CFrame = fx.CFrame | |
549 | wave.Transparency = i/14 | |
550 | wait() | |
551 | end | |
552 | wait() | |
553 | wave:Destroy() | |
554 | end)() | |
555 | elseif Transforming == false then | |
556 | wait() | |
557 | end | |
558 | end | |
559 | ||
560 | for i = 1, 100 do rs:wait() | |
561 | fx.CFrame = torso.CFrame | |
562 | end | |
563 | ||
564 | Spawn(function() | |
565 | while wait(1) do | |
566 | GroundWave() | |
567 | end | |
568 | end) | |
569 | ||
570 | wait(4) | |
571 | ||
572 | Transforming = false | |
573 | ||
574 | for i = 1, 20 do rs:wait() | |
575 | fx.Transparency = fx.Transparency + (1/20) | |
576 | fx.CFrame = torso.CFrame | |
577 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
578 | rs:wait() | |
579 | end | |
580 | ||
581 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
582 | local wave = Instance.new("Part", torso) | |
583 | wave.BrickColor = BrickColor.new("Institutional white") | |
584 | wave.Anchored = true | |
585 | wave.CanCollide = false | |
586 | wave.Locked = true | |
587 | wave.Size = Vector3.new(1, 1, 1) | |
588 | wave.TopSurface = "Smooth" | |
589 | wave.BottomSurface = "Smooth" | |
590 | wave.Transparency = 0.35 | |
591 | wave.CFrame = HandCF | |
592 | wm = Instance.new("SpecialMesh", wave) | |
593 | wm.MeshId = "rbxassetid://3270017" | |
594 | coroutine.wrap(function() | |
595 | for i = 1, 14, 1 do | |
596 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
597 | wave.Size = wm.Scale | |
598 | wave.CFrame = HandCF | |
599 | wave.Transparency = i/14 | |
600 | wait() | |
601 | end | |
602 | wait() | |
603 | wave:Destroy() | |
604 | end)() | |
605 | hum.WalkSpeed = 16 | |
606 | ---------------------------------------------------- | |
607 | Blast = function() | |
608 | local Colors = {"Really red", "Really black"} | |
609 | local wave = Instance.new("Part", torso) | |
610 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
611 | wave.Anchored = true | |
612 | wave.CanCollide = false | |
613 | wave.Locked = true | |
614 | wave.Size = Vector3.new(1, 1, 1) | |
615 | wave.TopSurface = "Smooth" | |
616 | wave.BottomSurface = "Smooth" | |
617 | wave.Transparency = 0.35 | |
618 | wave.CFrame = rarm.CFrame | |
619 | wm = Instance.new("SpecialMesh", wave) | |
620 | wm.MeshType = "Sphere" | |
621 | wm.Scale = Vector3.new(1,1,1) | |
622 | z = Instance.new("Sound",wave) | |
623 | z.SoundId = "rbxassetid://237035051" | |
624 | z.Volume = 1 | |
625 | z.Pitch = .9 | |
626 | z:Play() | |
627 | coroutine.wrap(function() | |
628 | for i = 1, 30, 1 do | |
629 | wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) | |
630 | --wave.Size = wm.Scale | |
631 | wave.CFrame = rarm.CFrame | |
632 | wave.Transparency = (1/14) | |
633 | rs:wait() | |
634 | end | |
635 | rs:wait() | |
636 | wave:Destroy() | |
637 | z:Destroy() | |
638 | end)() | |
639 | end | |
640 | ---------------------------------------------------- | |
641 | rarm.Touched:connect(function(ht) | |
642 | hit = ht.Parent | |
643 | if ht and hit:IsA("Model") then | |
644 | if hit:FindFirstChild("Humanoid") then | |
645 | if hit.Name ~= p.Name then | |
646 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
647 | Debounces.RPunched = true | |
648 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
649 | if Debounces.ks==true then | |
650 | z = Instance.new("Sound",hed) | |
651 | z.SoundId = "rbxassetid://169380525" | |
652 | z.Pitch = ptz[math.random(1,#ptz)] | |
653 | z.Volume = 1 | |
654 | z:Play() | |
655 | end | |
656 | wait(.2) | |
657 | Debounces.RPunched = false | |
658 | end | |
659 | end | |
660 | end | |
661 | elseif ht and hit:IsA("Hat") then | |
662 | if hit.Parent.Name ~= p.Name then | |
663 | if hit.Parent:FindFirstChild("Humanoid") then | |
664 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
665 | Debounces.RPunched = true | |
666 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
667 | if Debounces.ks==true then | |
668 | z = Instance.new("Sound",hed) | |
669 | z.SoundId = "rbxassetid://169380525" | |
670 | z.Pitch = ptz[math.random(1,#ptz)] | |
671 | z.Volume = 1 | |
672 | z:Play() | |
673 | end | |
674 | wait(.2) | |
675 | Debounces.RPunched = false | |
676 | end | |
677 | end | |
678 | end | |
679 | end | |
680 | end) | |
681 | larm.Touched:connect(function(ht) | |
682 | hit = ht.Parent | |
683 | if ht and hit:IsA("Model") then | |
684 | if hit:FindFirstChild("Humanoid") then | |
685 | if hit.Name ~= p.Name then | |
686 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
687 | Debounces.LPunched = true | |
688 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
689 | if Debounces.ks2==true then | |
690 | z = Instance.new("Sound",hed) | |
691 | z.SoundId = "rbxassetid://169380525" | |
692 | z.Pitch = ptz[math.random(1,#ptz)] | |
693 | z.Volume = 1 | |
694 | z:Play() | |
695 | end | |
696 | wait(.2) | |
697 | Debounces.LPunched = false | |
698 | end | |
699 | end | |
700 | end | |
701 | elseif ht and hit:IsA("Hat") then | |
702 | if hit.Parent.Name ~= p.Name then | |
703 | if hit.Parent:FindFirstChild("Humanoid") then | |
704 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
705 | Debounces.LPunched = true | |
706 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
707 | if Debounces.ks2==true then | |
708 | z = Instance.new("Sound",hed) | |
709 | z.SoundId = "rbxassetid://169380525" | |
710 | z.Pitch = ptz[math.random(1,#ptz)] | |
711 | z.Volume = 1 | |
712 | z:Play() | |
713 | end | |
714 | wait(.2) | |
715 | Debounces.LPunched = false | |
716 | end | |
717 | end | |
718 | end | |
719 | end | |
720 | end) | |
721 | ---------------------------------------------------- | |
722 | mod4 = Instance.new("Model",char) | |
723 | ||
724 | ptez = {0.7, 0.8, 0.9, 1} | |
725 | ||
726 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
727 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
728 | local List = {} | |
729 | for i,v in pairs(workspace:GetChildren())do | |
730 | if v:IsA("Model")then | |
731 | if v:findFirstChild("Torso")then | |
732 | if v ~= char then | |
733 | if(v.Torso.Position -Position).magnitude <= Distance then | |
734 | table.insert(List,v) | |
735 | end | |
736 | end | |
737 | end | |
738 | end | |
739 | end | |
740 | return List | |
741 | end | |
742 | ||
743 | function Punch() | |
744 | part=Instance.new('Part',mod4) | |
745 | part.Anchored=true | |
746 | part.CanCollide=false | |
747 | part.FormFactor='Custom' | |
748 | part.Size=Vector3.new(.2,.2,.2) | |
749 | part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) | |
750 | part.Transparency=.7 | |
751 | part.BrickColor=BrickColor.new('Really red') | |
752 | mesh=Instance.new('SpecialMesh',part) | |
753 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
754 | mesh.Scale=Vector3.new(3,3,3) | |
755 | part2=Instance.new('Part',mod4) | |
756 | part2.Anchored=true | |
757 | part2.CanCollide=false | |
758 | part2.FormFactor='Custom' | |
759 | part2.Size=Vector3.new(.2,.2,.2) | |
760 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
761 | part2.Transparency=.7 | |
762 | part2.BrickColor=BrickColor.new('Cyan') | |
763 | mesh2=Instance.new('SpecialMesh',part2) | |
764 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
765 | mesh2.Scale=Vector3.new(3,1.5,3) | |
766 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
767 | if v:FindFirstChild('Humanoid') then | |
768 | v.Humanoid:TakeDamage(math.random(2,6)) | |
769 | end | |
770 | end | |
771 | coroutine.resume(coroutine.create(function() | |
772 | for i=0,0.62,0.4 do | |
773 | wait() | |
774 | part.CFrame=part.CFrame | |
775 | part.Transparency=i | |
776 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
777 | part2.CFrame=part2.CFrame | |
778 | part2.Transparency=i | |
779 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
780 | end | |
781 | part.Parent=nil | |
782 | part2.Parent=nil | |
783 | end)) | |
784 | end | |
785 | ---------------------------------------------------- | |
786 | rarm.Touched:connect(function(ht) | |
787 | hit = ht.Parent | |
788 | if ht and hit:IsA("Model") then | |
789 | if hit:FindFirstChild("Humanoid") then | |
790 | if hit.Name ~= p.Name then | |
791 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
792 | Debounces.RPunched = true | |
793 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
794 | if Debounces.ks==true then | |
795 | z = Instance.new("Sound",hed) | |
796 | z.SoundId = "rbxassetid://169380525" | |
797 | z.Pitch = ptz[math.random(1,#ptz)] | |
798 | z.Volume = 1 | |
799 | z:Play() | |
800 | end | |
801 | wait(.2) | |
802 | Debounces.RPunched = false | |
803 | end | |
804 | end | |
805 | end | |
806 | elseif ht and hit:IsA("Hat") then | |
807 | if hit.Parent.Name ~= p.Name then | |
808 | if hit.Parent:FindFirstChild("Humanoid") then | |
809 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
810 | Debounces.RPunched = true | |
811 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
812 | if Debounces.ks==true then | |
813 | z = Instance.new("Sound",hed) | |
814 | z.SoundId = "rbxassetid://169380525" | |
815 | z.Pitch = ptz[math.random(1,#ptz)] | |
816 | z.Volume = 1 | |
817 | z:Play() | |
818 | end | |
819 | wait(.2) | |
820 | Debounces.RPunched = false | |
821 | end | |
822 | end | |
823 | end | |
824 | end | |
825 | end) | |
826 | larm.Touched:connect(function(ht) | |
827 | hit = ht.Parent | |
828 | if ht and hit:IsA("Model") then | |
829 | if hit:FindFirstChild("Humanoid") then | |
830 | if hit.Name ~= p.Name then | |
831 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
832 | Debounces.LPunched = true | |
833 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
834 | if Debounces.ks2==true then | |
835 | z = Instance.new("Sound",hed) | |
836 | z.SoundId = "rbxassetid://169380525" | |
837 | z.Pitch = ptz[math.random(1,#ptz)] | |
838 | z.Volume = 1 | |
839 | z:Play() | |
840 | end | |
841 | wait(.2) | |
842 | Debounces.LPunched = false | |
843 | end | |
844 | end | |
845 | end | |
846 | elseif ht and hit:IsA("Hat") then | |
847 | if hit.Parent.Name ~= p.Name then | |
848 | if hit.Parent:FindFirstChild("Humanoid") then | |
849 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
850 | Debounces.LPunched = true | |
851 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
852 | if Debounces.ks2==true then | |
853 | z = Instance.new("Sound",hed) | |
854 | z.SoundId = "rbxassetid://169380525" | |
855 | z.Pitch = ptz[math.random(1,#ptz)] | |
856 | z.Volume = 1 | |
857 | z:Play() | |
858 | end | |
859 | wait(.2) | |
860 | Debounces.LPunched = false | |
861 | end | |
862 | end | |
863 | end | |
864 | end | |
865 | end) | |
866 | ---------------------------------------------------- | |
867 | local player = game.Players.LocalPlayer | |
868 | local pchar = player.Character | |
869 | local mouse = player:GetMouse() | |
870 | local cam = workspace.CurrentCamera | |
871 | ||
872 | local rad = math.rad | |
873 | ||
874 | local keysDown = {} | |
875 | local flySpeed = 0 | |
876 | local MAX_FLY_SPEED = 150 | |
877 | ||
878 | local canFly = false | |
879 | local flyToggled = false | |
880 | ||
881 | local forward, side = 0, 0 | |
882 | local lastForward, lastSide = 0, 0 | |
883 | ||
884 | local floatBP = Instance.new("BodyPosition") | |
885 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
886 | local flyBV = Instance.new("BodyVelocity") | |
887 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
888 | local turnBG = Instance.new("BodyGyro") | |
889 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
890 | ||
891 | mouse.KeyDown:connect(function(key) | |
892 | keysDown[key] = true | |
893 | ||
894 | if key == "f" then | |
895 | flyToggled = not flyToggled | |
896 | ||
897 | if not flyToggled then | |
898 | stanceToggle = "Normal" | |
899 | floatBP.Parent = nil | |
900 | flyBV.Parent = nil | |
901 | turnBG.Parent = nil | |
902 | root.Velocity = Vector3.new() | |
903 | pchar.Humanoid.PlatformStand = false | |
904 | end | |
905 | end | |
906 | ||
907 | end) | |
908 | mouse.KeyUp:connect(function(key) | |
909 | keysDown[key] = nil | |
910 | end) | |
911 | ||
912 | local function updateFly() | |
913 | ||
914 | if not flyToggled then return end | |
915 | ||
916 | lastForward = forward | |
917 | lastSide = side | |
918 | ||
919 | forward = 0 | |
920 | side = 0 | |
921 | ||
922 | if keysDown.w then | |
923 | forward = forward + 1 | |
924 | end | |
925 | if keysDown.s then | |
926 | forward = forward - 1 | |
927 | end | |
928 | if keysDown.a then | |
929 | side = side - 1 | |
930 | end | |
931 | if keysDown.d then | |
932 | side = side + 1 | |
933 | end | |
934 | ||
935 | canFly = (forward ~= 0 or side ~= 0) | |
936 | ||
937 | if canFly then | |
938 | stanceToggle = "Floating" | |
939 | turnBG.Parent = root | |
940 | floatBP.Parent = nil | |
941 | flyBV.Parent = root | |
942 | ||
943 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
944 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
945 | else | |
946 | floatBP.position = root.Position | |
947 | floatBP.Parent = root | |
948 | ||
949 | flySpeed = flySpeed - 1 | |
950 | if flySpeed < 0 then flySpeed = 0 end | |
951 | end | |
952 | ||
953 | local camCF = cam.CoordinateFrame | |
954 | local in_forward = canFly and forward or lastForward | |
955 | local in_side = canFly and side or lastSide | |
956 | ||
957 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
958 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
959 | ||
960 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
961 | 0) | |
962 | end | |
963 | ||
964 | game:service'RunService'.RenderStepped:connect(function() | |
965 | if flyToggled then | |
966 | pchar.Humanoid.PlatformStand = true | |
967 | end | |
968 | updateFly() | |
969 | end) | |
970 | ------------------------------- | |
971 | mouse.KeyDown:connect(function(key) | |
972 | if key == "q" then | |
973 | if Debounces.CanAttack == true then | |
974 | Debounces.CanAttack = false | |
975 | Debounces.NoIdl = true | |
976 | Debounces.on = true | |
977 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
978 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
979 | local List = {} | |
980 | for i,v in pairs(workspace:GetChildren())do | |
981 | if v:IsA("Model")then | |
982 | if v:findFirstChild("Torso")then | |
983 | if v ~= char then | |
984 | if(v.Torso.Position -Position).magnitude <= Distance then | |
985 | table.insert(List,v) | |
986 | end | |
987 | end | |
988 | end | |
989 | end | |
990 | end | |
991 | return List | |
992 | end | |
993 | z = Instance.new("Sound",hed) | |
994 | z.SoundId = "rbxassetid://232213955" | |
995 | z.Pitch = 1 | |
996 | z.Volume = 1 | |
997 | wait(0.2) | |
998 | z:Play() | |
999 | sp = Instance.new("Part",rarm) | |
1000 | sp.Anchored = true | |
1001 | sp.CanCollide = false | |
1002 | sp.Locked = true | |
1003 | sp.Transparency = 0 | |
1004 | sp.Material = "Neon" | |
1005 | sp.Size = Vector3.new(1,1,1) | |
1006 | sp.TopSurface = "SmoothNoOutlines" | |
1007 | sp.BottomSurface = "SmoothNoOutlines" | |
1008 | sp.BrickColor = BrickColor.new("institutional white") | |
1009 | spm = Instance.new("SpecialMesh",sp) | |
1010 | spm.MeshType = "Sphere" | |
1011 | spm.Scale = Vector3.new(21,21,21) | |
1012 | sp2 = Instance.new("Part", rarm) | |
1013 | sp2.Name = "Energy" | |
1014 | sp2.BrickColor = BrickColor.new("institutional white") | |
1015 | sp2.Size = Vector3.new(1, 1, 1) | |
1016 | sp2.Shape = "Ball" | |
1017 | sp2.CanCollide = false | |
1018 | sp2.Anchored = true | |
1019 | sp2.Locked = true | |
1020 | sp2.TopSurface = 0 | |
1021 | sp2.BottomSurface = 0 | |
1022 | sp2.Transparency = 1 | |
1023 | spm2 = Instance.new("SpecialMesh",sp2) | |
1024 | spm2.MeshId = "rbxassetid://9982590" | |
1025 | spm2.Scale = Vector3.new(2,2,2) | |
1026 | for i = 1, 20 do | |
1027 | spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
1028 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
1029 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
1030 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
1031 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
1032 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1033 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1034 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1035 | if Debounces.on == false then break end | |
1036 | rs:wait() | |
1037 | end | |
1038 | for i = 1, 100, 20 do rs:wait() | |
1039 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
1040 | end | |
1041 | for i = 1, 20 do | |
1042 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
1043 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
1044 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4) | |
1045 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
1046 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
1047 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1048 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1049 | if Debounces.on == false then break end | |
1050 | rs:wait() | |
1051 | end | |
1052 | sp.Transparency = 1 | |
1053 | for i = 1, 20 do | |
1054 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
1055 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4) | |
1056 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
1057 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
1058 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1059 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1060 | if Debounces.on == false then break end | |
1061 | rs:wait() | |
1062 | end | |
1063 | wait(1) | |
1064 | sp.Transparency = 0 | |
1065 | sp2.Transparency = 0.84 | |
1066 | for i = 1, 20 do | |
1067 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
1068 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
1069 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
1070 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
1071 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
1072 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
1073 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
1074 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
1075 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
1076 | if Debounces.on == false then break end | |
1077 | rs:wait() | |
1078 | end | |
1079 | for i = 1, 2880, 50 do | |
1080 | rs:wait() | |
1081 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
1082 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
1083 | rs:wait() | |
1084 | end | |
1085 | sp:Destroy() | |
1086 | sp2:Destroy() | |
1087 | local X = Instance.new("Part",char) | |
1088 | local O = Instance.new("ObjectValue",X) | |
1089 | O.Name = "creator" | |
1090 | X.Locked = true | |
1091 | X.Name = "Shell" | |
1092 | X.Anchored = false | |
1093 | X.CanCollide = false | |
1094 | X.Transparency = 0 | |
1095 | X.Reflectance = 0 | |
1096 | X.BottomSurface = 0 | |
1097 | X.TopSurface = 0 | |
1098 | X.Shape = 0 | |
1099 | local V = Instance.new("ObjectValue",X) | |
1100 | V.Value = char | |
1101 | V.Name = "creator" | |
1102 | X.BrickColor = BrickColor.new("institutional white") | |
1103 | X.Size = Vector3.new(2,2,2) | |
1104 | X.Material = "Neon" | |
1105 | local Z = Instance.new("SpecialMesh",X) | |
1106 | Z.MeshType = "Sphere" | |
1107 | Z.Scale = Vector3.new(0.5,0.5,1) | |
1108 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
1109 | local bv = Instance.new("BodyVelocity",X) | |
1110 | bv.maxForce = Vector3.new(99999,99999,99999) | |
1111 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
1112 | bv.velocity = X.CFrame.lookVector*65 | |
1113 | ||
1114 | Explode = X.Touched:connect(function(hit) | |
1115 | if hit ~= char and hit.Name ~= "Shell" then | |
1116 | local cf = X.CFrame | |
1117 | bv:Destroy() | |
1118 | X.Anchored = true | |
1119 | Z:Remove() | |
1120 | Explode:disconnect() | |
1121 | X.Size = Vector3.new(3,3,3) | |
1122 | X.Touched:connect(function(hit) end) | |
1123 | X.CanCollide = false | |
1124 | local part3 = Instance.new("Part", rarm) | |
1125 | part3.Anchored=true | |
1126 | part3.CanCollide=false | |
1127 | part3.Locked = true | |
1128 | part3.TopSurface = "SmoothNoOutlines" | |
1129 | part3.BottomSurface = "SmoothNoOutlines" | |
1130 | part3.FormFactor='Custom' | |
1131 | part3.Size=Vector3.new(1,1, 1) | |
1132 | part3.CFrame=X.CFrame | |
1133 | part3.Transparency=0 | |
1134 | part3.BrickColor=BrickColor.new("institutional white") | |
1135 | local mesh3 = Instance.new("SpecialMesh",part3) | |
1136 | mesh3.MeshType = "Sphere" | |
1137 | mesh3.Scale = Vector3.new(1,1,1) | |
1138 | --debris:AddItem(X,8) | |
1139 | local part4 = Instance.new("Part", rarm) | |
1140 | part4.Material = "Neon" | |
1141 | part4.Anchored=true | |
1142 | part4.CanCollide=false | |
1143 | part4.Locked = true | |
1144 | part4.TopSurface = "SmoothNoOutlines" | |
1145 | part4.BottomSurface = "SmoothNoOutlines" | |
1146 | part4.FormFactor='Custom' | |
1147 | part4.Size=Vector3.new(1,1, 1) | |
1148 | part4.CFrame=X.CFrame | |
1149 | part4.Transparency=0 | |
1150 | part4.BrickColor=BrickColor.new("Cyan") | |
1151 | local mesh4 = Instance.new("SpecialMesh",part4) | |
1152 | mesh4.MeshType = "Sphere" | |
1153 | mesh4.Scale = Vector3.new(.5,.5,.5) | |
1154 | local part7 = Instance.new("Part", rarm) | |
1155 | part7.Material = "Neon" | |
1156 | part7.Anchored=true | |
1157 | part7.CanCollide=false | |
1158 | part7.Locked = true | |
1159 | part7.TopSurface = "SmoothNoOutlines" | |
1160 | part7.BottomSurface = "SmoothNoOutlines" | |
1161 | part7.FormFactor='Custom' | |
1162 | part7.Size=Vector3.new(1,1, 1) | |
1163 | part7.CFrame=X.CFrame | |
1164 | part7.Transparency=0 | |
1165 | part7.BrickColor=BrickColor.new("Really black") | |
1166 | local mesh7 = Instance.new("SpecialMesh",part7) | |
1167 | mesh7.MeshType = "Sphere" | |
1168 | mesh7.Scale = Vector3.new(0.1, 0.1, 0.1) | |
1169 | --[[X.Touched:connect(function(ht) | |
1170 | hit = ht.Parent | |
1171 | if ht and hit:IsA("Model") then | |
1172 | if hit:FindFirstChild("Humanoid") then | |
1173 | if hit.Name ~= p.Name then | |
1174 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
1175 | wait(.3) | |
1176 | end | |
1177 | end | |
1178 | elseif ht and hit:IsA("Hat") then | |
1179 | if hit.Parent.Name ~= p.Name then | |
1180 | if hit.Parent:FindFirstChild("Humanoid") then | |
1181 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
1182 | wait(.3) | |
1183 | end | |
1184 | end | |
1185 | end | |
1186 | end) | |
1187 | part3.Touched:connect(function(ht) | |
1188 | hit = ht.Parent | |
1189 | if ht and hit:IsA("Model") then | |
1190 | if hit:FindFirstChild("Humanoid") then | |
1191 | if hit.Name ~= p.Name then | |
1192 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
1193 | wait(.3) | |
1194 | end | |
1195 | end | |
1196 | elseif ht and hit:IsA("Hat") then | |
1197 | if hit.Parent.Name ~= p.Name then | |
1198 | if hit.Parent:FindFirstChild("Humanoid") then | |
1199 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
1200 | wait(.3) | |
1201 | end | |
1202 | end | |
1203 | end | |
1204 | end)]]-- | |
1205 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
1206 | if v:FindFirstChild('Humanoid') then | |
1207 | v.Humanoid:TakeDamage(math.random(60,90)) | |
1208 | v.Humanoid.PlatformStand = true | |
1209 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1210 | end | |
1211 | end | |
1212 | ||
1213 | local acos = math.acos | |
1214 | local sqrt = math.sqrt | |
1215 | local Vec3 = Vector3.new | |
1216 | local fromAxisAngle = CFrame.fromAxisAngle | |
1217 | ||
1218 | local function toAxisAngle(CFr) | |
1219 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
1220 | local Angle = math.acos((R00+R11+R22-1)/2) | |
1221 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1222 | A = A == 0 and 0.00001 or A | |
1223 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1224 | B = B == 0 and 0.00001 or B | |
1225 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1226 | C = C == 0 and 0.00001 or C | |
1227 | local x = (R21-R12)/sqrt(A) | |
1228 | local y = (R02-R20)/sqrt(B) | |
1229 | local z = (R10-R01)/sqrt(C) | |
1230 | return Vec3(x,y,z),Angle | |
1231 | end | |
1232 | ||
1233 | function ApplyTrig(Num,Func) | |
1234 | local Min,Max = Func(0),Func(1) | |
1235 | local i = Func(Num) | |
1236 | return (i-Min)/(Max-Min) | |
1237 | end | |
1238 | ||
1239 | function LerpCFrame(CFrame1,CFrame2,Num) | |
1240 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
1241 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
1242 | end | |
1243 | ||
1244 | function Crater(Torso,Radius) | |
1245 | Spawn(function() | |
1246 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
1247 | local Ignore = {} | |
1248 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
1249 | if v.Character ~= nil then | |
1250 | Ignore[#Ignore+1] = v.Character | |
1251 | end | |
1252 | end | |
1253 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
1254 | if Hit == nil then return end | |
1255 | local Parts = {} | |
1256 | for i = 1,360,10 do | |
1257 | local P = Instance.new("Part",Torso.Parent) | |
1258 | P.Anchored = true | |
1259 | P.FormFactor = "Custom" | |
1260 | P.BrickColor = Hit.BrickColor | |
1261 | P.Material = Hit.Material | |
1262 | P.TopSurface = "Smooth" | |
1263 | P.BottomSurface = "Smooth" | |
1264 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
1265 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
1266 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
1267 | if math.random(0,5) == 0 then -- rubble | |
1268 | local P = Instance.new("Part",Torso.Parent) | |
1269 | P.Anchored = true | |
1270 | P.FormFactor = "Custom" | |
1271 | P.BrickColor = Hit.BrickColor | |
1272 | P.Material = Hit.Material | |
1273 | P.TopSurface = "Smooth" | |
1274 | P.BottomSurface = "Smooth" | |
1275 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
1276 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
1277 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
1278 | end | |
1279 | end | |
1280 | for i = 0,1,0.05 do | |
1281 | for i2,v in pairs(Parts) do | |
1282 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
1283 | end | |
1284 | wait(0.02) | |
1285 | end | |
1286 | for i,v in pairs(Parts) do | |
1287 | if v[1].Size.X > 2.1 then | |
1288 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
1289 | end | |
1290 | v[1].Anchored = false | |
1291 | end | |
1292 | for i = 0,1,0.05 do | |
1293 | for i2,v in pairs(Parts) do | |
1294 | v[1].Transparency = i | |
1295 | if i == 1 then | |
1296 | v[1]:Destroy() | |
1297 | elseif i >= 0.25 then | |
1298 | v[1].CanCollide = false | |
1299 | end | |
1300 | end | |
1301 | wait(0.02) | |
1302 | end | |
1303 | Parts = nil | |
1304 | end) | |
1305 | end | |
1306 | ||
1307 | ROW = function(out, trans, s, wt, t, ang, plus) | |
1308 | for i = 1, 360, 360/t do | |
1309 | local c = Instance.new("Part", game.Workspace) | |
1310 | c.FormFactor = 3 | |
1311 | c.TopSurface = 0 | |
1312 | c.BottomSurface = 0 | |
1313 | c.Size = s | |
1314 | c.Anchored = true | |
1315 | c.CanCollide = wt | |
1316 | c.Material=workspace.Base.Material | |
1317 | c.Transparency = trans | |
1318 | c.BrickColor = workspace.Base.BrickColor | |
1319 | c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
1320 | c.Locked=true | |
1321 | game.Debris:AddItem(c,15) | |
1322 | end | |
1323 | end | |
1324 | ||
1325 | Part = function(x,y,z,color,tr,cc,an,parent) | |
1326 | local p = Instance.new('Part',parent or Weapon) | |
1327 | p.formFactor = 'Custom' | |
1328 | p.Size = Vector3.new(x,y,z) | |
1329 | p.BrickColor = BrickColor.new(color) | |
1330 | p.CanCollide = cc | |
1331 | p.Transparency = tr | |
1332 | p.Anchored = an | |
1333 | p.TopSurface,p.BottomSurface = 0,0 | |
1334 | p.Locked=true | |
1335 | p:BreakJoints() | |
1336 | return p end | |
1337 | ||
1338 | Mesh = function(par,num,x,y,z) | |
1339 | local msh = _ | |
1340 | if num == 1 then msh = Instance.new("CylinderMesh",par) | |
1341 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 | |
1342 | elseif num == 3 then msh = Instance.new("BlockMesh",par) | |
1343 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso" | |
1344 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num | |
1345 | end msh.Scale = Vector3.new(x,y,z) | |
1346 | return msh end | |
1347 | ||
1348 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
1349 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
1350 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
1351 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
1352 | v1,v2,v3=sz.x,sz.y,sz.z | |
1353 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
1354 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
1355 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
1356 | a.CFrame=cfr | |
1357 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
1358 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
1359 | ||
1360 | Spawn(function() | |
1361 | while wait() do | |
1362 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
1363 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
1364 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
1365 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
1366 | a.Transparency=a.Transparency+0.05 | |
1367 | a2.Transparency=a2.Transparency+0.05 | |
1368 | a3.Transparency=a3.Transparency+0.05 | |
1369 | end | |
1370 | end) | |
1371 | end | |
1372 | ||
1373 | Crater(X,20) | |
1374 | ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) | |
1375 | z = Instance.new("Sound",X) | |
1376 | z.SoundId = "rbxassetid://231917744" | |
1377 | z.Pitch = .5 | |
1378 | z.Volume = 10 | |
1379 | z1 = Instance.new("Sound",X) | |
1380 | z1.SoundId = "rbxassetid://231917744" | |
1381 | z1.Pitch = .5 | |
1382 | z1.Volume = 10 | |
1383 | z2 = Instance.new("Sound",X) | |
1384 | z2.SoundId = "rbxassetid://231917744" | |
1385 | z2.Pitch = .5 | |
1386 | z2.Volume = 10 | |
1387 | z3 = Instance.new("Sound",X) | |
1388 | z3.SoundId = "rbxassetid://245537790" | |
1389 | z3.Pitch = .7 | |
1390 | z3.Volume = 1 | |
1391 | z4 = Instance.new("Sound",X) | |
1392 | z4.SoundId = "rbxassetid://245537790" | |
1393 | z4.Pitch = .7 | |
1394 | z4.Volume = 1 | |
1395 | wait(0.1) | |
1396 | z:Play() | |
1397 | z1:Play() | |
1398 | z2:Play() | |
1399 | z3:Play() | |
1400 | z4:Play() | |
1401 | ||
1402 | local part=Instance.new('Part',rarm) | |
1403 | part.Anchored=true | |
1404 | part.CanCollide=false | |
1405 | part.Locked = true | |
1406 | part.FormFactor='Custom' | |
1407 | part.Size=Vector3.new(1,1,1) | |
1408 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
1409 | part.Transparency=0 | |
1410 | part.BrickColor=BrickColor.new('Really black') | |
1411 | local mesh=Instance.new('SpecialMesh',part) | |
1412 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1413 | mesh.Scale=Vector3.new(2,2,2) | |
1414 | local part2=part:clone() | |
1415 | part2.Parent = rarm | |
1416 | part2.BrickColor=BrickColor.new("institutional white") | |
1417 | local part5=part:clone() | |
1418 | part5.Parent = rarm | |
1419 | part5.BrickColor=BrickColor.new("Cyan") | |
1420 | local part6=part:clone() | |
1421 | part6.Parent = rarm | |
1422 | part6.BrickColor=BrickColor.new("Black") | |
1423 | local mesh2=mesh:clone() | |
1424 | mesh2.Parent=part2 | |
1425 | mesh2.Scale=Vector3.new(3, 3, 3) | |
1426 | local mesh5=mesh:clone() | |
1427 | mesh5.Parent=part5 | |
1428 | mesh5.Scale=Vector3.new(3, 3, 3) | |
1429 | local mesh6=mesh:clone() | |
1430 | mesh6.Parent=part6 | |
1431 | mesh6.Scale=Vector3.new(3, 3, 3) | |
1432 | local blast = Instance.new("Part", rarm) | |
1433 | blast.BrickColor = BrickColor.new("Really black") | |
1434 | blast.Anchored = true | |
1435 | blast.CanCollide = false | |
1436 | blast.Locked = true | |
1437 | blast.Size = Vector3.new(1, 1, 1) | |
1438 | blast.TopSurface = "Smooth" | |
1439 | blast.BottomSurface = "Smooth" | |
1440 | blast.Transparency = 0 | |
1441 | blast.CFrame = HandCF | |
1442 | local bm = Instance.new("SpecialMesh", blast) | |
1443 | bm.Scale = Vector3.new(5,1,5) | |
1444 | bm.MeshId = "rbxassetid://3270017" | |
1445 | local blast2 = Instance.new("Part", rarm) | |
1446 | blast2.BrickColor = BrickColor.new("Really black") | |
1447 | blast2.Anchored = true | |
1448 | blast2.CanCollide = false | |
1449 | blast2.Locked = true | |
1450 | blast2.Size = Vector3.new(1, 1, 1) | |
1451 | blast2.TopSurface = "Smooth" | |
1452 | blast2.BottomSurface = "Smooth" | |
1453 | blast2.Transparency = 0 | |
1454 | blast2.CFrame = HandCF | |
1455 | local bm2 = Instance.new("SpecialMesh", blast2) | |
1456 | bm2.Scale = Vector3.new(3,1,3) | |
1457 | bm2.MeshId = "rbxassetid://3270017" | |
1458 | local blast3 = Instance.new("Part", rarm) | |
1459 | blast3.BrickColor = BrickColor.new("Really black") | |
1460 | blast3.Anchored = true | |
1461 | blast3.CanCollide = false | |
1462 | blast3.Locked = true | |
1463 | blast3.Size = Vector3.new(1, 1, 1) | |
1464 | blast3.TopSurface = "Smooth" | |
1465 | blast3.BottomSurface = "Smooth" | |
1466 | blast3.Transparency = 0 | |
1467 | blast3.CFrame = HandCF | |
1468 | local bm3 = Instance.new("SpecialMesh", blast3) | |
1469 | bm3.Scale = Vector3.new(3,1,3) | |
1470 | bm3.MeshId = "rbxassetid://3270017" | |
1471 | for i = 1,120 do rs:wait() | |
1472 | X.Transparency = X.Transparency + (1/120) | |
1473 | part.Transparency = part.Transparency + (1/120) | |
1474 | part2.Transparency = part2.Transparency + (1/120) | |
1475 | part3.Transparency = part3.Transparency + (1/120) | |
1476 | part4.Transparency = part4.Transparency + (1/120) | |
1477 | part5.Transparency = part5.Transparency + (1/120) | |
1478 | part6.Transparency = part6.Transparency + (1/120) | |
1479 | part7.Transparency = part7.Transparency + (1/120) | |
1480 | blast.Transparency = blast.Transparency + (1/120) | |
1481 | blast2.Transparency = blast2.Transparency + (1/120) | |
1482 | blast3.Transparency = blast3.Transparency + (1/120) | |
1483 | X.Size = X.Size + Vector3.new(.8,.8,.8) | |
1484 | --part3.Size = part3.Size + Vector3.new(3,3,3) | |
1485 | mesh.Scale = mesh.Scale + Vector3.new(1,.2,1) | |
1486 | mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1) | |
1487 | mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3) | |
1488 | mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7) | |
1489 | mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6) | |
1490 | mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2) | |
1491 | mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4) | |
1492 | bm.Scale = bm.Scale + Vector3.new(6,6,.2) | |
1493 | bm2.Scale = bm2.Scale + Vector3.new(4,4,.2) | |
1494 | bm3.Scale = bm3.Scale + Vector3.new(4,4,.2) | |
1495 | X.CFrame = cf | |
1496 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
1497 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
1498 | part3.CFrame=X.CFrame | |
1499 | part4.CFrame=X.CFrame | |
1500 | part7.CFrame=X.CFrame | |
1501 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
1502 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
1503 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1504 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
1505 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
1506 | rs:wait() | |
1507 | end | |
1508 | X:Destroy() | |
1509 | part:Destroy() | |
1510 | part2:Destroy() | |
1511 | part3:Destroy() | |
1512 | part4:Destroy() | |
1513 | part5:Destroy() | |
1514 | part6:Destroy() | |
1515 | blast:Destroy() | |
1516 | blast2:Destroy() | |
1517 | blast3:Destroy() | |
1518 | z:Destroy() | |
1519 | z1:Destroy() | |
1520 | z2:Destroy() | |
1521 | z3:Destroy() | |
1522 | z4:Destroy() | |
1523 | end | |
1524 | end) | |
1525 | for i = 1, 20 do | |
1526 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
1527 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
1528 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
1529 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
1530 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
1531 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
1532 | if Debounces.on == false then break end | |
1533 | rs:wait() | |
1534 | end | |
1535 | if Debounces.CanAttack == false then | |
1536 | Debounces.CanAttack = true | |
1537 | Debounces.NoIdl = false | |
1538 | Debounces.on = false | |
1539 | end | |
1540 | end | |
1541 | end | |
1542 | end) | |
1543 | ---------------------------------------------------- | |
1544 | mouse.KeyDown:connect(function(key) | |
1545 | if key == "e" then | |
1546 | if Debounces.CanAttack == true then | |
1547 | Debounces.CanAttack = false | |
1548 | Debounces.on = true | |
1549 | Debounces.NoIdl = true | |
1550 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5} | |
1551 | z = Instance.new("Sound", rarm) | |
1552 | z.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
1553 | z.Volume = .6 | |
1554 | z.Pitch = pt[math.random(1,#pt)] | |
1555 | z.Looped = false | |
1556 | z:Play() | |
1557 | Debounces.RPunch = true | |
1558 | Debounces.LPunch = true | |
1559 | Debounces.ks = true | |
1560 | Debounces.ks2 = true | |
1561 | for i = 1, 3 do | |
1562 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1563 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1564 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1565 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1566 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1567 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1568 | if Debounces.on == false then break end | |
1569 | wait() | |
1570 | end | |
1571 | z2 = Instance.new("Sound", larm) | |
1572 | z2.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1573 | z2.Volume = .6 | |
1574 | z2.Pitch = pt[math.random(1,#pt)] | |
1575 | z2.Looped = false | |
1576 | z2:Play() | |
1577 | for i = 1, 3 do | |
1578 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1579 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1580 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1581 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1582 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1583 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1584 | if Debounces.on == false then break end | |
1585 | wait() | |
1586 | end | |
1587 | z3 = Instance.new("Sound", rarm) | |
1588 | z3.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1589 | z3.Volume = 0.6 | |
1590 | z3.Pitch = pt[math.random(1,#pt)] | |
1591 | z3.Looped = false | |
1592 | z3:Play() | |
1593 | for i = 1, 3 do | |
1594 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1595 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1596 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1597 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1598 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1599 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1600 | if Debounces.on == false then break end | |
1601 | wait() | |
1602 | end | |
1603 | z4 = Instance.new("Sound", larm) | |
1604 | z4.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1605 | z4.Volume = .6 | |
1606 | z4.Pitch = pt[math.random(1,#pt)] | |
1607 | z4.Looped = false | |
1608 | z4:Play() | |
1609 | for i = 1, 3 do | |
1610 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1611 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1612 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1613 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1614 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1615 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1616 | if Debounces.on == false then break end | |
1617 | wait() | |
1618 | end | |
1619 | z5 = Instance.new("Sound", rarm) | |
1620 | z5.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1621 | z5.Volume = .6 | |
1622 | z5.Pitch = pt[math.random(1,#pt)] | |
1623 | z5.Looped = false | |
1624 | z5:Play() | |
1625 | for i = 1, 3 do | |
1626 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1627 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1628 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1629 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1630 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1631 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1632 | if Debounces.on == false then break end | |
1633 | wait() | |
1634 | end | |
1635 | z6 = Instance.new("Sound", larm) | |
1636 | z6.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1637 | z6.Volume = .6 | |
1638 | z6.Pitch = pt[math.random(1,#pt)] | |
1639 | z6.Looped = false | |
1640 | z6:Play() | |
1641 | for i = 1, 3 do | |
1642 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1643 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1644 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1645 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1646 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1647 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1648 | if Debounces.on == false then break end | |
1649 | wait() | |
1650 | end | |
1651 | z7 = Instance.new("Sound", rarm) | |
1652 | z7.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
1653 | z7.Volume = .6 | |
1654 | z7.Pitch = pt[math.random(1,#pt)] | |
1655 | z7.Looped = false | |
1656 | z7:Play() | |
1657 | for i = 1, 3 do | |
1658 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1659 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1660 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1661 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1662 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1663 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1664 | if Debounces.on == false then break end | |
1665 | wait() | |
1666 | end | |
1667 | z8 = Instance.new("Sound", larm) | |
1668 | z8.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1669 | z8.Volume = .6 | |
1670 | z8.Pitch = pt[math.random(1,#pt)] | |
1671 | z8.Looped = false | |
1672 | z8:Play() | |
1673 | for i = 1, 3 do | |
1674 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1675 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1676 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1677 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1678 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1679 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1680 | if Debounces.on == false then break end | |
1681 | wait() | |
1682 | end | |
1683 | z9 = Instance.new("Sound", rarm) | |
1684 | z9.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1685 | z9.Volume = 0.6 | |
1686 | z9.Pitch = pt[math.random(1,#pt)] | |
1687 | z9.Looped = false | |
1688 | z9:Play() | |
1689 | for i = 1, 3 do | |
1690 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1691 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1692 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1693 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1694 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1695 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1696 | if Debounces.on == false then break end | |
1697 | wait() | |
1698 | end | |
1699 | z10 = Instance.new("Sound", larm) | |
1700 | z10.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1701 | z10.Volume = .6 | |
1702 | z10.Pitch = pt[math.random(1,#pt)] | |
1703 | z10.Looped = false | |
1704 | z10:Play() | |
1705 | for i = 1, 3 do | |
1706 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1707 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1708 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1709 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1710 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1711 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1712 | if Debounces.on == false then break end | |
1713 | wait() | |
1714 | end | |
1715 | z11 = Instance.new("Sound", rarm) | |
1716 | z11.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1717 | z11.Volume = .6 | |
1718 | z11.Pitch = pt[math.random(1,#pt)] | |
1719 | z11.Looped = false | |
1720 | z11:Play() | |
1721 | for i = 1, 3 do | |
1722 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1723 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1724 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1725 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1726 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1727 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1728 | if Debounces.on == false then break end | |
1729 | wait() | |
1730 | end | |
1731 | z12 = Instance.new("Sound", larm) | |
1732 | z12.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1733 | z12.Volume = .6 | |
1734 | z12.Pitch = pt[math.random(1,#pt)] | |
1735 | z12.Looped = false | |
1736 | z12:Play() | |
1737 | for i = 1, 3 do | |
1738 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1739 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1740 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1741 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1742 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1743 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1744 | if Debounces.on == false then break end | |
1745 | wait() | |
1746 | end | |
1747 | z13 = Instance.new("Sound", rarm) | |
1748 | z13.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1749 | z13.Volume = 0.6 | |
1750 | z13.Pitch = pt[math.random(1,#pt)] | |
1751 | z13.Looped = false | |
1752 | z13:Play() | |
1753 | for i = 1, 3 do | |
1754 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1755 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1756 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1757 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1758 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1759 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1760 | if Debounces.on == false then break end | |
1761 | wait() | |
1762 | end | |
1763 | z14 = Instance.new("Sound", larm) | |
1764 | z14.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1765 | z14.Volume = .6 | |
1766 | z14.Pitch = pt[math.random(1,#pt)] | |
1767 | z14.Looped = false | |
1768 | z14:Play() | |
1769 | for i = 1, 3 do | |
1770 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1771 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1772 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1773 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1774 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1775 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1776 | if Debounces.on == false then break end | |
1777 | wait() | |
1778 | end | |
1779 | z15 = Instance.new("Sound", rarm) | |
1780 | z15.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1781 | z15.Volume = .6 | |
1782 | z15.Pitch = pt[math.random(1,#pt)] | |
1783 | z15.Looped = false | |
1784 | z15:Play() | |
1785 | for i = 1, 3 do | |
1786 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1787 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1788 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1789 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1790 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1791 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1792 | if Debounces.on == false then break end | |
1793 | wait() | |
1794 | end | |
1795 | z16 = Instance.new("Sound", larm) | |
1796 | z16.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1797 | z16.Volume = .6 | |
1798 | z16.Pitch = pt[math.random(1,#pt)] | |
1799 | z16.Looped = false | |
1800 | z16:Play() | |
1801 | for i = 1, 3 do | |
1802 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1803 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1804 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1805 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1806 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1807 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1808 | if Debounces.on == false then break end | |
1809 | wait() | |
1810 | end | |
1811 | z17 = Instance.new("Sound", rarm) | |
1812 | z17.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
1813 | z17.Volume = .6 | |
1814 | z17.Pitch = pt[math.random(1,#pt)] | |
1815 | z17.Looped = false | |
1816 | z17:Play() | |
1817 | for i = 1, 3 do | |
1818 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1819 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1820 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1821 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1822 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1823 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1824 | if Debounces.on == false then break end | |
1825 | wait() | |
1826 | end | |
1827 | z18 = Instance.new("Sound", larm) | |
1828 | z18.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1829 | z18.Volume = .6 | |
1830 | z18.Pitch = pt[math.random(1,#pt)] | |
1831 | z18.Looped = false | |
1832 | z18:Play() | |
1833 | for i = 1, 3 do | |
1834 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1835 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1836 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1837 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1838 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1839 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1840 | if Debounces.on == false then break end | |
1841 | wait() | |
1842 | end | |
1843 | z19 = Instance.new("Sound", rarm) | |
1844 | z19.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1845 | z19.Volume = 0.6 | |
1846 | z19.Pitch = pt[math.random(1,#pt)] | |
1847 | z19.Looped = false | |
1848 | z19:Play() | |
1849 | for i = 1, 3 do | |
1850 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1851 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1852 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1853 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1854 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1855 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1856 | if Debounces.on == false then break end | |
1857 | wait() | |
1858 | end | |
1859 | z20 = Instance.new("Sound", larm) | |
1860 | z20.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1861 | z20.Volume = .6 | |
1862 | z20.Pitch = pt[math.random(1,#pt)] | |
1863 | z20.Looped = false | |
1864 | z20:Play() | |
1865 | for i = 1, 3 do | |
1866 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1867 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1868 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1869 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1870 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1871 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1872 | if Debounces.on == false then break end | |
1873 | wait() | |
1874 | end | |
1875 | z:Destroy() | |
1876 | z2:Destroy() | |
1877 | z3:Destroy() | |
1878 | z4:Destroy() | |
1879 | z5:Destroy() | |
1880 | z6:Destroy() | |
1881 | z7:Destroy() | |
1882 | z8:Destroy() | |
1883 | z9:Destroy() | |
1884 | z10:Destroy() | |
1885 | z11:Destroy() | |
1886 | z12:Destroy() | |
1887 | z13:Destroy() | |
1888 | z14:Destroy() | |
1889 | z15:Destroy() | |
1890 | z16:Destroy() | |
1891 | z17:Destroy() | |
1892 | z18:Destroy() | |
1893 | z19:Destroy() | |
1894 | z20:Destroy() | |
1895 | Debounces.LPunch = false | |
1896 | Debounces.RPunch = false | |
1897 | Debounces.ks = false | |
1898 | Debounces.ks2 = false | |
1899 | if Debounces.CanAttack == false then | |
1900 | Debounces.CanAttack = true | |
1901 | Debounces.on = false | |
1902 | Debounces.NoIdl = false | |
1903 | end | |
1904 | end | |
1905 | end | |
1906 | end) | |
1907 | ------------------------------- | |
1908 | mouse.KeyDown:connect(function(key) | |
1909 | if key == "t" then | |
1910 | if Debounces.CanAttack == true then | |
1911 | Debounces.CanAttack = false | |
1912 | Debounces.NoIdl = true | |
1913 | Debounces.on = true | |
1914 | Debounces.ks = true | |
1915 | kik = rleg.Touched:connect(function(ht) | |
1916 | hit = ht.Parent | |
1917 | if ht and hit:IsA("Model") then | |
1918 | if hit:FindFirstChild("Humanoid") then | |
1919 | if hit.Name ~= p.Name then | |
1920 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1921 | Debounces.Slashed = true]]-- | |
1922 | if Debounces.ks==true then | |
1923 | z = Instance.new("Sound",hed) | |
1924 | z.SoundId = "rbxassetid://169380525" | |
1925 | z.Volume = 1 | |
1926 | z:Play() | |
1927 | Debounces.ks=false | |
1928 | end | |
1929 | hit:FindFirstChild("Humanoid"):TakeDamage(2) | |
1930 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 | |
1931 | --Debounces.Slashed = false | |
1932 | --end | |
1933 | end | |
1934 | end | |
1935 | elseif ht and hit:IsA("Hat") then | |
1936 | if hit.Parent.Name ~= p.Name then | |
1937 | if hit.Parent:FindFirstChild("Humanoid") then | |
1938 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1939 | Debounces.Slashed = true]]-- | |
1940 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2) | |
1941 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 | |
1942 | --Debounces.Slashed = false | |
1943 | --end | |
1944 | end | |
1945 | end | |
1946 | end | |
1947 | end) | |
1948 | for i = 1,20 do | |
1949 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
1950 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.4) | |
1951 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
1952 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4) | |
1953 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4) | |
1954 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
1955 | if Debounces.on == false then break end | |
1956 | rs:wait() | |
1957 | end | |
1958 | kik:disconnect() | |
1959 | if Debounces.CanAttack == false then | |
1960 | Debounces.CanAttack = true | |
1961 | Debounces.NoIdl = false | |
1962 | Debounces.on = false | |
1963 | end | |
1964 | end | |
1965 | end | |
1966 | end) | |
1967 | ---------------------------------------------------- | |
1968 | mouse.KeyDown:connect(function(key) | |
1969 | if key == "y" then | |
1970 | if Debounces.CanAttack == true then | |
1971 | Debounces.CanAttack = false | |
1972 | Debounces.on = true | |
1973 | Debounces.NoIdl = true | |
1974 | for i = 1, 15 do | |
1975 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2) | |
1976 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6) | |
1977 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
1978 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4) | |
1979 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
1980 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
1981 | if Debounces.on == false then break end | |
1982 | rs:wait(2.7) | |
1983 | end | |
1984 | x = Instance.new("Sound",char) | |
1985 | x.SoundId = "rbxassetid://228343271" | |
1986 | x.Pitch = 1 | |
1987 | x.Volume = .8 | |
1988 | wait(.1) | |
1989 | x:Play() | |
1990 | Debounces.on = false | |
1991 | Debounces.Here = false | |
1992 | shot = shot + 1 | |
1993 | local rng = Instance.new("Part", larm) | |
1994 | rng.Anchored = true | |
1995 | rng.BrickColor = BrickColor.new("institutional white") | |
1996 | rng.CanCollide = false | |
1997 | rng.FormFactor = 3 | |
1998 | rng.Name = "Ring" | |
1999 | rng.Size = Vector3.new(1, 1, 1) | |
2000 | rng.Transparency = 0.35 | |
2001 | rng.TopSurface = 0 | |
2002 | rng.BottomSurface = 0 | |
2003 | rng2 = rng:clone() | |
2004 | rng3 = rng2:clone() | |
2005 | rng4 = rng2:clone() | |
2006 | local rngm = Instance.new("SpecialMesh", rng) | |
2007 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2008 | rngm.Scale = Vector3.new(10, 10, 1) | |
2009 | rngm2 = rngm:clone() | |
2010 | rngm2.Scale = Vector3.new(5, 5, 3) | |
2011 | rngm3=rngm2:clone() | |
2012 | rngm3.Parent = rng3 | |
2013 | rngm3.Scale = Vector3.new(8, 8, 1) | |
2014 | rngm4 = rngm2:clone() | |
2015 | rngm4.Parent = rng4 | |
2016 | rngm4.Scale = Vector3.new(6, 6, 1) | |
2017 | local bem = Instance.new("Part", larm) | |
2018 | bem.Anchored = true | |
2019 | bem.BrickColor = BrickColor.new("Really black") | |
2020 | bem.CanCollide = false | |
2021 | bem.FormFactor = 3 | |
2022 | bem.Name = "Beam" .. shot | |
2023 | bem.Size = Vector3.new(1, 1, 1) | |
2024 | bem.Transparency = 0.35 | |
2025 | bem.TopSurface = 0 | |
2026 | bem.BottomSurface = 0 | |
2027 | local bemm = Instance.new("SpecialMesh", bem) | |
2028 | bemm.MeshType = 4 | |
2029 | bemm.Scale = Vector3.new(1, 4, 4) | |
2030 | local out = Instance.new("Part", larm) | |
2031 | out.Anchored = true | |
2032 | out.BrickColor = BrickColor.new("Really black") | |
2033 | out.CanCollide = false | |
2034 | out.FormFactor = 3 | |
2035 | out.Name = "Out" | |
2036 | out.Size = Vector3.new(4, 4, 4) | |
2037 | out.Transparency = 0.35 | |
2038 | out.TopSurface = 0 | |
2039 | out.BottomSurface = 0 | |
2040 | local outm = Instance.new("SpecialMesh", out) | |
2041 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
2042 | outm.Scale = Vector3.new(6, 4, 6) | |
2043 | local bnd = Instance.new("Part", larm) | |
2044 | bnd.Anchored = true | |
2045 | bnd.BrickColor = BrickColor.new("Cyan") | |
2046 | bnd.CanCollide = false | |
2047 | bnd.FormFactor = 3 | |
2048 | bnd.Name = "Bend" | |
2049 | bnd.Size = Vector3.new(1, 1, 1) | |
2050 | bnd.Transparency = 1 | |
2051 | bnd.TopSurface = 0 | |
2052 | bnd.BottomSurface = 0 | |
2053 | local bndm = Instance.new("SpecialMesh", bnd) | |
2054 | bndm.MeshType = 3 | |
2055 | bndm.Scale = Vector3.new(8, 8, 8) | |
2056 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
2057 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2058 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
2059 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
2060 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
2061 | rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
2062 | Debounces.Shewt = true | |
2063 | coroutine.wrap(function() | |
2064 | for i = 1, 20, 0.2 do | |
2065 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
2066 | rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) | |
2067 | rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) | |
2068 | rng.Transparency = i/20 | |
2069 | rng3.Transparency = 1/24 | |
2070 | rng4.Transparency = i/26 | |
2071 | wait() | |
2072 | end | |
2073 | wait() | |
2074 | rng:Destroy() | |
2075 | end)() | |
2076 | if Debounces.Shewt == true then | |
2077 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht) | |
2078 | hit = ht.Parent | |
2079 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
2080 | if HasntTouched(hit.Name) == true and deb == false then | |
2081 | deb = true | |
2082 | coroutine.wrap(function() | |
2083 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2084 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
2085 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73)) | |
2086 | end)() | |
2087 | table.insert(Touche, hit.Name) | |
2088 | deb = false | |
2089 | end | |
2090 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
2091 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
2092 | deb = true | |
2093 | coroutine.wrap(function() | |
2094 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
2095 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
2096 | wait(1) | |
2097 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
2098 | end)() | |
2099 | table.insert(Touche, hit.Parent.Name) | |
2100 | deb = false | |
2101 | for i, v in pairs(Touche) do | |
2102 | print(v) | |
2103 | end | |
2104 | end | |
2105 | end | |
2106 | end) | |
2107 | end | |
2108 | for i = 0, 260, 8 do | |
2109 | bem.Size = Vector3.new(i, 3, 3) | |
2110 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
2111 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2112 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
2113 | bnd.Size = Vector3.new(1,1,1) | |
2114 | bndm.Scale = Vector3.new(8,8,8) | |
2115 | if i % 10 == 0 then | |
2116 | local newRng = rng2:Clone() | |
2117 | newRng.Parent = larm | |
2118 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
2119 | local newRngm = rngm2:clone() | |
2120 | newRngm.Parent=newRng | |
2121 | coroutine.wrap(function() | |
2122 | for i = 1, 10, 0.2 do | |
2123 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) | |
2124 | newRng.Transparency = i/10 | |
2125 | wait() | |
2126 | end | |
2127 | wait() | |
2128 | newRng:Destroy() | |
2129 | end)() | |
2130 | end | |
2131 | wait() | |
2132 | end | |
2133 | wait() | |
2134 | Debounces.Shewt = false | |
2135 | bem:Destroy() | |
2136 | out:Destroy() | |
2137 | bnd:Destroy() | |
2138 | Debounces.Ready = false | |
2139 | for i, v in pairs(Touche) do | |
2140 | table.remove(Touche, i) | |
2141 | end | |
2142 | wait() | |
2143 | table.insert(Touche, char.Name) | |
2144 | Debounces.NoIdl = false | |
2145 | if Debounces.CanAttack == false then | |
2146 | Debounces.CanAttack = true | |
2147 | end | |
2148 | end | |
2149 | end | |
2150 | end) | |
2151 | ---------------------------------------------------- | |
2152 | --[[mouse.KeyDown:connect(function(key) | |
2153 | if key == "y" then | |
2154 | if Debounces.CanAttack == true then | |
2155 | Debounces.CanAttack = false | |
2156 | Debounces.NoIdl = true | |
2157 | Debounces.on = true | |
2158 | local shell = Instance.new("Part",torso) | |
2159 | shell.BrickColor = BrickColor.new("Royal purple") | |
2160 | shell.Anchored = false | |
2161 | shell.CanCollide = false | |
2162 | shell.Locked = true | |
2163 | shell.TopSurface = "SmoothNoOutlines" | |
2164 | shell.BottomSurface = "SmoothNoOutlines" | |
2165 | shell.Size = Vector3.new(1.2,1.2,1.2) | |
2166 | shell.FormFactor = 3 | |
2167 | local shellm = Instance.new("SpecialMesh",shell) | |
2168 | shellm.MeshType = "Sphere" | |
2169 | shellm.Scale = Vector3.new(1.2,1.2,1.2) | |
2170 | Omega = function() | |
2171 | local X = Instance.new("Part",char) | |
2172 | local O = Instance.new("ObjectValue",X) | |
2173 | O.Name = "creator" | |
2174 | X.Locked = true | |
2175 | X.Name = "Shell" | |
2176 | X.Anchored = false | |
2177 | X.CanCollide = false | |
2178 | X.Transparency = 0.5 | |
2179 | X.Reflectance = 0 | |
2180 | X.BottomSurface = 0 | |
2181 | X.TopSurface = 0 | |
2182 | X.Shape = 0 | |
2183 | local V = Instance.new("ObjectValue",X) | |
2184 | V.Value = char | |
2185 | V.Name = "creator" | |
2186 | X.BrickColor = BrickColor.new("Royal purple") | |
2187 | X.Size = Vector3.new(40,40,40) | |
2188 | --X.Material = "Neon" | |
2189 | local Z = Instance.new("SpecialMesh",X) | |
2190 | Z.MeshType = "Sphere" | |
2191 | Z.Scale = Vector3.new(0.2,0.2,0.2) | |
2192 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
2193 | local bv = Instance.new("BodyVelocity",X) | |
2194 | bv.maxForce = Vector3.new(99999,99999,99999) | |
2195 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
2196 | bv.velocity = root.CFrame.lookVector*10 | |
2197 | Explode = X.Touched:connect(function(hit) | |
2198 | if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart}") then | |
2199 | local cf = X.CFrame | |
2200 | bv:Destroy() | |
2201 | X.Anchored = true | |
2202 | Z:Remove() | |
2203 | Explode:disconnect() | |
2204 | X.Size = Vector3.new(3,3,3) | |
2205 | X.Touched:connect(function(hit) end) | |
2206 | X.CanCollide = false | |
2207 | for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do | |
2208 | if v:FindFirstChild('Humanoid') then | |
2209 | v.Humanoid:TakeDamage(math.random(80,120)) | |
2210 | end | |
2211 | end | |
2212 | for i = 1, (40) do rs:wait() | |
2213 | X.Transparency = X.Transparency + (1/40) | |
2214 | X.Size = X.Size + Vector3.new(1,1,1) | |
2215 | X.CFrame = root.CFrame * CFrame.new(0,0,-10) | |
2216 | end | |
2217 | X:Destroy() | |
2218 | end | |
2219 | end) | |
2220 | end | |
2221 | for i = 1,200 do | |
2222 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2223 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.03) | |
2224 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
2225 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2226 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2227 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2228 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2229 | if Debounces.on == false then break end | |
2230 | rs:wait() | |
2231 | end | |
2232 | for i = 1,30 do | |
2233 | shell.CFrame = torso.CFrame * CFrame.new(0,8,0) | |
2234 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.4) | |
2235 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-170)), 0.4) | |
2236 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2237 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2238 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2239 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2240 | if Debounces.on == false then break end | |
2241 | rs:wait() | |
2242 | end | |
2243 | for i = 1,40 do | |
2244 | shell.CFrame = torso.CFrame * CFrame.new(0,20,0) | |
2245 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
2246 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100)), 0.4) | |
2247 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100)), 0.4) | |
2248 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2249 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2250 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2251 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2252 | if Debounces.on == false then break end | |
2253 | rs:wait() | |
2254 | end | |
2255 | for i = 1,40 do | |
2256 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-30) | |
2257 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(20)), 0.4) | |
2258 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.4) | |
2259 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2260 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2261 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2262 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2263 | if Debounces.on == false then break end | |
2264 | rs:wait() | |
2265 | end | |
2266 | for i = 1,60 do | |
2267 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
2268 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)), 0.4) | |
2269 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.4) | |
2270 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2271 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2272 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2273 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2274 | if Debounces.on == false then break end | |
2275 | rs:wait() | |
2276 | end | |
2277 | for i = 1,60 do | |
2278 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
2279 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
2280 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(120)), 0.4) | |
2281 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-120)), 0.4) | |
2282 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2283 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2284 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2285 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2286 | if Debounces.on == false then break end | |
2287 | rs:wait() | |
2288 | end | |
2289 | if Debounces.CanAttack == false then | |
2290 | Debounces.CanAttack = true | |
2291 | Debounces.NoIdl = false | |
2292 | Debounces.on = false | |
2293 | end | |
2294 | end | |
2295 | end | |
2296 | end)]]-- | |
2297 | ---------------------------------------------------- | |
2298 | Charging = false | |
2299 | mouse.KeyDown:connect(function(key) | |
2300 | if key == "r" then | |
2301 | if Charging == false then | |
2302 | Charging = true | |
2303 | if Debounces.CanAttack == true then | |
2304 | Debounces.CanAttack = false | |
2305 | Debounces.NoIdl = true | |
2306 | Debounces.on = true | |
2307 | for i = 1,20 do | |
2308 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2) | |
2309 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2) | |
2310 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
2311 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
2312 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
2313 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
2314 | if Debounces.on == false then break end | |
2315 | rs:wait() | |
2316 | end | |
2317 | --[[for i = 1,20 do | |
2318 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4) | |
2319 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4) | |
2320 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
2321 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4) | |
2322 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
2323 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
2324 | if Debounces.on == false then break end | |
2325 | rs:wait() | |
2326 | end]]-- | |
2327 | pt=Instance.new('Part',torso) | |
2328 | pt.Anchored=true | |
2329 | pt.CanCollide=false | |
2330 | pt.Locked = true | |
2331 | pt.FormFactor='Custom' | |
2332 | pt.Size=Vector3.new(1,1,1) | |
2333 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2334 | pt.Transparency=.6 | |
2335 | pt.BrickColor=BrickColor.new('Really black') | |
2336 | msh=Instance.new('SpecialMesh',pt) | |
2337 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
2338 | msh.Scale=Vector3.new(8,4,8) | |
2339 | pt2=pt:clone() | |
2340 | pt2.Parent = torso | |
2341 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2342 | pt2.BrickColor=BrickColor.new("Cyan") | |
2343 | msh2=msh:clone() | |
2344 | msh2.Parent=pt2 | |
2345 | msh2.Scale=Vector3.new(10,5,10) | |
2346 | ||
2347 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
2348 | ||
2349 | bl = Instance.new("Part", char) | |
2350 | bl.Locked = true | |
2351 | bl.Name = "Shell" | |
2352 | bl.BrickColor = BrickColor.new("Really black") | |
2353 | bl.Anchored = true | |
2354 | bl.CanCollide = false | |
2355 | bl.Transparency = 0 | |
2356 | bl.Reflectance = 0 | |
2357 | bl.BottomSurface = 0 | |
2358 | bl.TopSurface = 0 | |
2359 | bl.Shape = 0 | |
2360 | blm = Instance.new("SpecialMesh",bl) | |
2361 | blm.MeshType = "Sphere" | |
2362 | blm.Scale = Vector3.new(1,1,1) | |
2363 | blm.MeshId = "rbxassetid://9982590" | |
2364 | ||
2365 | coroutine.resume(coroutine.create(function() | |
2366 | for i=1, math.huge, 4 do | |
2367 | if Charging == true then | |
2368 | rs:wait() | |
2369 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
2370 | blm.Scale = blm.Scale + Vector3.new(0.1, 0.1, 0.1) | |
2371 | bl.Transparency = bl.Transparency + 0.005 | |
2372 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
2373 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
2374 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
2375 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
2376 | elseif Charging == false then break | |
2377 | end | |
2378 | end | |
2379 | end)) | |
2380 | ||
2381 | repeat | |
2382 | local p = Instance.new('Part',torso) | |
2383 | p.formFactor = 'Custom' | |
2384 | p.Size = Vector3.new(1,1,1) | |
2385 | p.BrickColor = workspace.Base.BrickColor | |
2386 | p.CanCollide = false | |
2387 | p.Transparency = 0 | |
2388 | p.Anchored = true | |
2389 | p.Locked=true | |
2390 | p.Material = workspace.Base.Material | |
2391 | s = math.random(1,40)/10 | |
2392 | local m = Instance.new("BlockMesh",p) | |
2393 | m.Scale = Vector3.new(s,s,s) | |
2394 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
2395 | --[[coroutine.wrap(function() | |
2396 | wait(2) | |
2397 | while Charging == true do | |
2398 | wait(2) | |
2399 | GroundWave1() | |
2400 | wait(2) | |
2401 | end | |
2402 | end)()]]-- | |
2403 | Spawn(function() | |
2404 | while rs:wait() do | |
2405 | if Charging == true then | |
2406 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
2407 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
2408 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
2409 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
2410 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
2411 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
2412 | elseif Charging == false then break | |
2413 | end | |
2414 | end | |
2415 | end) | |
2416 | Spawn(function() | |
2417 | while rs:wait() do | |
2418 | if p.Transparency >= 1 then p:Destroy() break end | |
2419 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
2420 | p.Transparency = p.Transparency+0.01 | |
2421 | end | |
2422 | end) | |
2423 | wait(.3) | |
2424 | until Charging == false | |
2425 | end | |
2426 | end | |
2427 | end | |
2428 | end) | |
2429 | ---------------------------------------------------- | |
2430 | mouse.KeyUp:connect(function(key) | |
2431 | if key == "r" then | |
2432 | if Charging == true then | |
2433 | Charging = false | |
2434 | pt:Destroy() | |
2435 | pt2:Destroy() | |
2436 | bl:Destroy() | |
2437 | if Debounces.CanAttack == false then | |
2438 | Debounces.CanAttack = true | |
2439 | Debounces.NoIdl = false | |
2440 | Debounces.on = false | |
2441 | end | |
2442 | end | |
2443 | end | |
2444 | end) | |
2445 | ---------------------------------------------------- | |
2446 | mouse.KeyDown:connect(function(key) | |
2447 | if key == "g" then | |
2448 | if Debounces.CanAttack == true then | |
2449 | Debounces.CanAttack = false | |
2450 | Debounces.NoIdl = true | |
2451 | Debounces.on = true | |
2452 | local shell = Instance.new("Part",torso) | |
2453 | shell.BrickColor = BrickColor.new("Cyan") | |
2454 | shell.Anchored = true | |
2455 | shell.CanCollide = false | |
2456 | shell.Locked = true | |
2457 | shell.TopSurface = "SmoothNoOutlines" | |
2458 | shell.BottomSurface = "SmoothNoOutlines" | |
2459 | shell.Size = Vector3.new(1,1,1) | |
2460 | shellm = Instance.new("SpecialMesh",shell) | |
2461 | shellm.MeshType = "Sphere" | |
2462 | shellm.Scale = Vector3.new(1,1,1) | |
2463 | local shell2 = Instance.new("Part",torso) | |
2464 | shell2.BrickColor = BrickColor.new("Cyan") | |
2465 | shell2.Anchored = true | |
2466 | shell2.CanCollide = false | |
2467 | shell2.Locked = true | |
2468 | shell2.TopSurface = "SmoothNoOutlines" | |
2469 | shell2.BottomSurface = "SmoothNoOutlines" | |
2470 | shell2.Size = Vector3.new(1,1,1) | |
2471 | shellm2 = Instance.new("SpecialMesh",shell2) | |
2472 | shellm2.MeshType = "Sphere" | |
2473 | shellm2.Scale = Vector3.new(1,1,1) | |
2474 | ||
2475 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
2476 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
2477 | local List = {} | |
2478 | for i,v in pairs(workspace:GetChildren())do | |
2479 | if v:IsA("Model")then | |
2480 | if v:findFirstChild("Torso")then | |
2481 | if v ~= char then | |
2482 | if(v.Torso.Position -Position).magnitude <= Distance then | |
2483 | table.insert(List,v) | |
2484 | end | |
2485 | end | |
2486 | end | |
2487 | end | |
2488 | end | |
2489 | return List | |
2490 | end | |
2491 | ||
2492 | Shell = function() | |
2493 | local X = Instance.new("Part",char) | |
2494 | local O = Instance.new("ObjectValue",X) | |
2495 | O.Name = "creator" | |
2496 | X.Locked = true | |
2497 | X.Name = "Shell" | |
2498 | X.Anchored = false | |
2499 | X.CanCollide = false | |
2500 | X.Transparency = 0 | |
2501 | X.Reflectance = 0 | |
2502 | X.BottomSurface = 0 | |
2503 | X.TopSurface = 0 | |
2504 | X.Shape = 0 | |
2505 | local V = Instance.new("ObjectValue",X) | |
2506 | V.Value = char | |
2507 | V.Name = "creator" | |
2508 | X.BrickColor = BrickColor.new("Cyan") | |
2509 | X.Size = Vector3.new(1,1,1) | |
2510 | --X.Material = "Neon" | |
2511 | local Z = Instance.new("SpecialMesh",X) | |
2512 | Z.MeshType = "Sphere" | |
2513 | Z.Scale = Vector3.new(1,1,1) | |
2514 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
2515 | local bv = Instance.new("BodyVelocity",X) | |
2516 | bv.maxForce = Vector3.new(99999,99999,99999) | |
2517 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
2518 | bv.velocity = root.CFrame.lookVector*65 | |
2519 | Explode = X.Touched:connect(function(hit) | |
2520 | if hit ~= char and hit.Name ~= "Shell" and hit:IsA("Part") or hit:IsA("BasePart}") then | |
2521 | local cf = X.CFrame | |
2522 | bv:Destroy() | |
2523 | X.Anchored = true | |
2524 | Z:Remove() | |
2525 | Explode:disconnect() | |
2526 | X.Size = Vector3.new(3,3,3) | |
2527 | X.Touched:connect(function(hit) end) | |
2528 | X.CanCollide = false | |
2529 | for i,v in pairs(FindNearestTorso(X.CFrame.p,40))do | |
2530 | if v:FindFirstChild('Humanoid') then | |
2531 | v.Humanoid:TakeDamage(math.random(6,12)) | |
2532 | end | |
2533 | end | |
2534 | for i = 1, (40) do rs:wait() | |
2535 | X.Transparency = X.Transparency + (1/40) | |
2536 | X.Size = X.Size + Vector3.new(1,1,1) | |
2537 | X.CFrame = cf | |
2538 | end | |
2539 | X:Destroy() | |
2540 | end | |
2541 | end) | |
2542 | end | |
2543 | Shell() | |
2544 | for i = 1, 10 do | |
2545 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2546 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2547 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2548 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2549 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.7) | |
2550 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.7) | |
2551 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.7) | |
2552 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.7) | |
2553 | if Debounces.on == false then break end | |
2554 | rs:wait() | |
2555 | end | |
2556 | Shell() | |
2557 | shell.Transparency = 1 | |
2558 | for i = 1, 10 do | |
2559 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2560 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2561 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2562 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2563 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2564 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2565 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2566 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2567 | if Debounces.on == false then break end | |
2568 | rs:wait() | |
2569 | end | |
2570 | Shell() | |
2571 | shell.Transparency = 0 | |
2572 | shell2.Transparency = 1 | |
2573 | for i = 1, 10 do | |
2574 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2575 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2576 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2577 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2578 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2579 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2580 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2581 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2582 | if Debounces.on == false then break end | |
2583 | rs:wait() | |
2584 | end | |
2585 | Shell() | |
2586 | shell2.Transparency = 0 | |
2587 | shell.Transparency = 1 | |
2588 | for i = 1, 10 do | |
2589 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2590 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2591 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2592 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2593 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2594 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2595 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2596 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2597 | if Debounces.on == false then break end | |
2598 | rs:wait() | |
2599 | end | |
2600 | Shell() | |
2601 | shell.Transparency = 0 | |
2602 | shell2.Transparency = 1 | |
2603 | for i = 1, 10 do | |
2604 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2605 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2606 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2607 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2608 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2609 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2610 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2611 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2612 | if Debounces.on == false then break end | |
2613 | rs:wait() | |
2614 | end | |
2615 | Shell() | |
2616 | shell2.Transparency = 0 | |
2617 | shell.Transparency = 1 | |
2618 | for i = 1, 10 do | |
2619 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2620 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2621 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2622 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2623 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2624 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2625 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2626 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2627 | if Debounces.on == false then break end | |
2628 | rs:wait() | |
2629 | end | |
2630 | Shell() | |
2631 | shell.Transparency = 0 | |
2632 | shell2.Transparency = 1 | |
2633 | for i = 1, 10 do | |
2634 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2635 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2636 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2637 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.5) | |
2638 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2639 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2640 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2641 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2642 | if Debounces.on == false then break end | |
2643 | rs:wait() | |
2644 | end | |
2645 | Shell() | |
2646 | shell2.Transparency = 0 | |
2647 | shell.Transparency = 1 | |
2648 | for i = 1, 10 do | |
2649 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2650 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2651 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2652 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2653 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2654 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2655 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2656 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2657 | if Debounces.on == false then break end | |
2658 | rs:wait() | |
2659 | end | |
2660 | Shell() | |
2661 | shell.Transparency = 0 | |
2662 | shell2.Transparency = 1 | |
2663 | for i = 1, 10 do | |
2664 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2665 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2666 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2667 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2668 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2669 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2670 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2671 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2672 | if Debounces.on == false then break end | |
2673 | rs:wait() | |
2674 | end | |
2675 | Shell() | |
2676 | shell2.Transparency = 0 | |
2677 | shell.Transparency = 1 | |
2678 | for i = 1, 10 do | |
2679 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2680 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2681 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2682 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2683 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2684 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2685 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2686 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2687 | if Debounces.on == false then break end | |
2688 | rs:wait() | |
2689 | end | |
2690 | Shell() | |
2691 | shell.Transparency = 0 | |
2692 | shell2.Transparency = 1 | |
2693 | for i = 1, 10 do | |
2694 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2695 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2696 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2697 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2698 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2699 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2700 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2701 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2702 | if Debounces.on == false then break end | |
2703 | rs:wait() | |
2704 | end | |
2705 | Shell() | |
2706 | shell2.Transparency = 0 | |
2707 | shell.Transparency = 1 | |
2708 | for i = 1, 10 do | |
2709 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2710 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2711 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2712 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2713 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2714 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2715 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2716 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2717 | if Debounces.on == false then break end | |
2718 | rs:wait() | |
2719 | end | |
2720 | Shell() | |
2721 | shell.Transparency = 0 | |
2722 | shell2.Transparency = 1 | |
2723 | for i = 1, 10 do | |
2724 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2725 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2726 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2727 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2728 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2729 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2730 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2731 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2732 | if Debounces.on == false then break end | |
2733 | rs:wait() | |
2734 | end | |
2735 | shell.Transparency = 1 | |
2736 | if Debounces.CanAttack == false then | |
2737 | Debounces.CanAttack = true | |
2738 | Debounces.NoIdl = false | |
2739 | Debounces.on = false | |
2740 | end | |
2741 | end | |
2742 | end | |
2743 | end) | |
2744 | ---------------------------------------------------- | |
2745 | Search = false | |
2746 | mouse.KeyDown:connect(function(key) | |
2747 | if key == "n" then | |
2748 | if Search == false then | |
2749 | Search = true | |
2750 | for i,v in pairs(game.Players:getPlayers()) do | |
2751 | if v.Name~=char.Name then | |
2752 | for j,k in pairs(v.Character:GetChildren()) do | |
2753 | if k:IsA("BasePart") and k.Transparency >= 1 then | |
2754 | bawx=Instance.new("SelectionBox",cam) | |
2755 | bawx.Color = BrickColor.new("Bright red") | |
2756 | bawx.Transparency = .5 | |
2757 | bawx.Adornee = k | |
2758 | end | |
2759 | end | |
2760 | end | |
2761 | end | |
2762 | elseif Search == true then | |
2763 | Search = false | |
2764 | for i, v in pairs(cam:GetChildren()) do | |
2765 | if v:IsA("SelectionBox") then | |
2766 | v:Destroy() | |
2767 | end | |
2768 | end | |
2769 | end | |
2770 | end | |
2771 | end) | |
2772 | ---------------------------------------------------- | |
2773 | Grab = false | |
2774 | mouse.KeyDown:connect(function(key) | |
2775 | if key == "z" then | |
2776 | Debounces.on = true | |
2777 | Debounces.NoIdl = true | |
2778 | Debounces.ks = true | |
2779 | if Grab == false then | |
2780 | gp = nil | |
2781 | for i = 1, 20 do | |
2782 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.2) | |
2783 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.2) | |
2784 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
2785 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
2786 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
2787 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
2788 | if Debounces.on == false then break end | |
2789 | rs:wait() | |
2790 | end | |
2791 | con1=larm.Touched:connect(function(hit) -- this is grab | |
2792 | ht = hit.Parent | |
2793 | hum1=ht:FindFirstChild('Humanoid') | |
2794 | if hum1 ~= nil then | |
2795 | if Debounces.ks==true then | |
2796 | z = Instance.new("Sound",hed) | |
2797 | z.SoundId = "rbxassetid://169380525" | |
2798 | z.Volume = 1 | |
2799 | z:Play() | |
2800 | Debounces.ks=false | |
2801 | end | |
2802 | hum1.PlatformStand=true | |
2803 | gp = ht | |
2804 | Grab = true | |
2805 | asd=weld5(root,ht:FindFirstChild("Torso"),CFrame.new(0,0,-2.4),CFrame.new(0,0,0)) | |
2806 | asd.Parent = larm | |
2807 | asd.Name = "asd" | |
2808 | asd.C0=asd.C0*CFrame.Angles(math.rad(0),math.rad(180),0) | |
2809 | --[[elseif hum1 == nil then | |
2810 | con1:disconnect() | |
2811 | wait() return]]-- | |
2812 | end | |
2813 | end) | |
2814 | for i = 1, 20 do | |
2815 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.2) | |
2816 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.2) | |
2817 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
2818 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
2819 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
2820 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
2821 | if Debounces.on == false then break end | |
2822 | rs:wait() | |
2823 | end | |
2824 | if hum1 == nil then | |
2825 | Debounces.on = false | |
2826 | Debounces.NoIdl = false | |
2827 | end | |
2828 | con1:disconnect() | |
2829 | elseif Grab == true then | |
2830 | Grab = false | |
2831 | Punch() | |
2832 | z = Instance.new("Sound",hed) | |
2833 | z.SoundId = "rbxassetid://169380525" | |
2834 | z.Pitch = ptz[math.random(1,#ptz)] | |
2835 | z.Volume = 1 | |
2836 | z:Play() | |
2837 | for i = 1, 10 do | |
2838 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
2839 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
2840 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
2841 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
2842 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2843 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2844 | if Debounces.on == false then break end | |
2845 | rs:wait() | |
2846 | end | |
2847 | Punch() | |
2848 | z = Instance.new("Sound",hed) | |
2849 | z.SoundId = "rbxassetid://169380525" | |
2850 | z.Pitch = ptz[math.random(1,#ptz)] | |
2851 | z.Volume = 1 | |
2852 | z:Play() | |
2853 | for i = 1, 10 do | |
2854 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
2855 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
2856 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
2857 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
2858 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2859 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2860 | if Debounces.on == false then break end | |
2861 | rs:wait() | |
2862 | end | |
2863 | Punch() | |
2864 | z = Instance.new("Sound",hed) | |
2865 | z.SoundId = "rbxassetid://169380525" | |
2866 | z.Pitch = ptz[math.random(1,#ptz)] | |
2867 | z.Volume = 1 | |
2868 | z:Play() | |
2869 | for i = 1, 10 do | |
2870 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
2871 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
2872 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
2873 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
2874 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2875 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2876 | if Debounces.on == false then break end | |
2877 | rs:wait() | |
2878 | end | |
2879 | Punch() | |
2880 | z = Instance.new("Sound",hed) | |
2881 | z.SoundId = "rbxassetid://169380525" | |
2882 | z.Pitch = ptz[math.random(1,#ptz)] | |
2883 | z.Volume = 1 | |
2884 | z:Play() | |
2885 | for i = 1, 10 do | |
2886 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
2887 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
2888 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
2889 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
2890 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2891 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2892 | if Debounces.on == false then break end | |
2893 | rs:wait() | |
2894 | end | |
2895 | Punch() | |
2896 | z = Instance.new("Sound",hed) | |
2897 | z.SoundId = "rbxassetid://169380525" | |
2898 | z.Pitch = ptz[math.random(1,#ptz)] | |
2899 | z.Volume = 1 | |
2900 | z:Play() | |
2901 | for i = 1, 10 do | |
2902 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
2903 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
2904 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
2905 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
2906 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2907 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2908 | if Debounces.on == false then break end | |
2909 | rs:wait() | |
2910 | end | |
2911 | Punch() | |
2912 | z = Instance.new("Sound",hed) | |
2913 | z.SoundId = "rbxassetid://169380525" | |
2914 | z.Pitch = ptz[math.random(1,#ptz)] | |
2915 | z.Volume = 1 | |
2916 | z:Play() | |
2917 | for i = 1, 10 do | |
2918 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
2919 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
2920 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
2921 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
2922 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2923 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2924 | if Debounces.on == false then break end | |
2925 | rs:wait() | |
2926 | end | |
2927 | Punch() | |
2928 | z = Instance.new("Sound",hed) | |
2929 | z.SoundId = "rbxassetid://169380525" | |
2930 | z.Pitch = ptz[math.random(1,#ptz)] | |
2931 | z.Volume = 1 | |
2932 | z:Play() | |
2933 | for i = 1, 10 do | |
2934 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
2935 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
2936 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
2937 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
2938 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2939 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2940 | if Debounces.on == false then break end | |
2941 | rs:wait() | |
2942 | end | |
2943 | Punch() | |
2944 | z = Instance.new("Sound",hed) | |
2945 | z.SoundId = "rbxassetid://169380525" | |
2946 | z.Pitch = ptz[math.random(1,#ptz)] | |
2947 | z.Volume = 1 | |
2948 | z:Play() | |
2949 | for i = 1, 10 do | |
2950 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
2951 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
2952 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
2953 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
2954 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2955 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2956 | if Debounces.on == false then break end | |
2957 | rs:wait() | |
2958 | end | |
2959 | Punch() | |
2960 | z = Instance.new("Sound",hed) | |
2961 | z.SoundId = "rbxassetid://169380525" | |
2962 | z.Pitch = ptz[math.random(1,#ptz)] | |
2963 | z.Volume = 1 | |
2964 | z:Play() | |
2965 | for i = 1, 10 do | |
2966 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
2967 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
2968 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
2969 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
2970 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2971 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2972 | if Debounces.on == false then break end | |
2973 | rs:wait() | |
2974 | end | |
2975 | Punch() | |
2976 | z = Instance.new("Sound",hed) | |
2977 | z.SoundId = "rbxassetid://169380525" | |
2978 | z.Pitch = ptz[math.random(1,#ptz)] | |
2979 | z.Volume = 1 | |
2980 | z:Play() | |
2981 | for i = 1, 10 do | |
2982 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
2983 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
2984 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
2985 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
2986 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2987 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2988 | if Debounces.on == false then break end | |
2989 | rs:wait() | |
2990 | end | |
2991 | Punch() | |
2992 | z = Instance.new("Sound",hed) | |
2993 | z.SoundId = "rbxassetid://169380525" | |
2994 | z.Pitch = ptz[math.random(1,#ptz)] | |
2995 | z.Volume = 1 | |
2996 | z:Play() | |
2997 | for i = 1, 10 do | |
2998 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
2999 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
3000 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
3001 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
3002 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
3003 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
3004 | if Debounces.on == false then break end | |
3005 | rs:wait() | |
3006 | end | |
3007 | Punch() | |
3008 | z = Instance.new("Sound",hed) | |
3009 | z.SoundId = "rbxassetid://338700363" | |
3010 | z.Pitch = ptz[math.random(1,#ptz)] | |
3011 | z.Volume = 1 | |
3012 | z:Play() | |
3013 | for i = 1, 10 do | |
3014 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
3015 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
3016 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
3017 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
3018 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
3019 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
3020 | if Debounces.on == false then break end | |
3021 | rs:wait() | |
3022 | end | |
3023 | con1:disconnect() | |
3024 | Debounces.on = false | |
3025 | Debounces.NoIdl = false | |
3026 | if gp ~= nil then | |
3027 | gp:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 140 | |
3028 | for i,v in pairs(larm:GetChildren()) do | |
3029 | if v.Name == "asd" and v:IsA("Weld") then | |
3030 | v:Remove() | |
3031 | end | |
3032 | end | |
3033 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
3034 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
3035 | bv.P = 125000 | |
3036 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
3037 | hum1=nil | |
3038 | ht=nil | |
3039 | Debounces.on = false | |
3040 | Debounces.NoIdl = false | |
3041 | elseif ht == nil then wait() | |
3042 | Grab = false | |
3043 | Debounces.on = false | |
3044 | Debounces.NoIdl = false | |
3045 | end | |
3046 | end | |
3047 | end | |
3048 | end) | |
3049 | ---------------------------------------------------- | |
3050 | mouse.KeyDown:connect(function(key) | |
3051 | if string.byte(key) == 52 then | |
3052 | char.Humanoid.WalkSpeed = 60 | |
3053 | end | |
3054 | end) | |
3055 | mouse.KeyUp:connect(function(key) | |
3056 | if string.byte(key) == 52 then | |
3057 | char.Humanoid.WalkSpeed = 8 | |
3058 | end | |
3059 | end) | |
3060 | ------------------------------- | |
3061 | local animpose = "Idle" | |
3062 | local lastanimpose = "Idle" | |
3063 | local sine = 0 | |
3064 | local change = 1 | |
3065 | local val = 0 | |
3066 | local ffing = false | |
3067 | ------------------------------- | |
3068 | game:GetService("RunService").RenderStepped:connect(function() | |
3069 | --[[if char.Humanoid.Jump == true then | |
3070 | jump = true | |
3071 | else | |
3072 | jump = false | |
3073 | end]] | |
3074 | char.Humanoid.FreeFalling:connect(function(f) | |
3075 | if f then | |
3076 | ffing = true | |
3077 | else | |
3078 | ffing = false | |
3079 | end | |
3080 | end) | |
3081 | sine = sine + change | |
3082 | if jumpn == true then | |
3083 | animpose = "Jumping" | |
3084 | elseif ffing == true then | |
3085 | animpose = "Freefalling" | |
3086 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
3087 | animpose = "Idle" | |
3088 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
3089 | animpose = "Walking" | |
3090 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
3091 | animpose = "Running" | |
3092 | end | |
3093 | if animpose ~= lastanimpose then | |
3094 | sine = 0 | |
3095 | if Debounces.NoIdl == false then | |
3096 | if animpose == "Idle" then | |
3097 | for i = 1, 2 do | |
3098 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
3099 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
3100 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
3101 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
3102 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
3103 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
3104 | end | |
3105 | elseif animpose == "Walking" then | |
3106 | for i = 1, 2 do | |
3107 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3108 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3109 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
3110 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3111 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3112 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3113 | end | |
3114 | elseif animpose == "Running" then | |
3115 | for i = 1, 2 do | |
3116 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-14),math.rad(8+2*math.cos(sine/14))), 0.2) | |
3117 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(14),math.rad(-8-2*math.cos(sine/14))), 0.2) | |
3118 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10),0,0), 0.4) | |
3119 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),0, math.rad(0)), 0.4) | |
3120 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-7)), 0.4) | |
3121 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(7)), 0.4) | |
3122 | wait() | |
3123 | end | |
3124 | end | |
3125 | else | |
3126 | end | |
3127 | end | |
3128 | lastanimpose = animpose | |
3129 | if Debounces.NoIdl == false then | |
3130 | if animpose == "Idle" then | |
3131 | change = 0.5 | |
3132 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8+2*math.cos(sine/14))), 0.4) | |
3133 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3134 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3135 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3136 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3137 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
3138 | elseif animpose == "Walking" then | |
3139 | change = 1 | |
3140 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3141 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3142 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
3143 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3144 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3145 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3146 | elseif animpose == "Running" then | |
3147 | change = 1 | |
3148 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2) | |
3149 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) | |
3150 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
3151 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2) | |
3152 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) | |
3153 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) | |
3154 | end | |
3155 | end | |
3156 | end) | |
3157 | ||
3158 | hum.MaxHealth = 9001 | |
3159 | wait(3) | |
3160 | hum.Health = 9001 | |
3161 | ||
3162 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module | |
3163 | --[[Part0 = Vector3 (Start pos) | |
3164 | Part1 = Vector3 (End pos) | |
3165 | Times = number (Amount of lightning parts) | |
3166 | Offset = number (Offset) | |
3167 | Color = color (brickcolor value) | |
3168 | Thickness = number (thickness) | |
3169 | Trans = number (transparency) | |
3170 | ]]-- | |
3171 | local magz = (Part0 - Part1).magnitude | |
3172 | local curpos = Part0 | |
3173 | local trz = {-Offset,Offset} | |
3174 | for i=1,Times do | |
3175 | local li = Instance.new("Part", torso) | |
3176 | li.Name = "Lightning" | |
3177 | li.TopSurface =0 | |
3178 | li.Material = "Neon" | |
3179 | li.BottomSurface = 0 | |
3180 | li.Anchored = true | |
3181 | li.Locked = true | |
3182 | li.Transparency = Trans or 0.4 | |
3183 | li.BrickColor = BrickColor.new(Color) | |
3184 | li.formFactor = "Custom" | |
3185 | li.CanCollide = false | |
3186 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
3187 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
3188 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
3189 | if Times == i then | |
3190 | local magz2 = (curpos - Part1).magnitude | |
3191 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
3192 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
3193 | else | |
3194 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
3195 | end | |
3196 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
3197 | game.Debris:AddItem(li,.1) | |
3198 | end | |
3199 | end | |
3200 | ||
3201 | BodyParts = {} -- Parts to emit lightning effects from | |
3202 | for _, v in pairs(char:GetChildren()) do | |
3203 | if v:IsA("Part") then | |
3204 | table.insert(BodyParts, v) | |
3205 | end | |
3206 | end | |
3207 | ||
3208 | Bounding = {} -- Calculate the bounding boxes | |
3209 | for _, v in pairs(BodyParts) do | |
3210 | local temp = {X=nil, Y=nil, Z=nil} | |
3211 | temp.X = v.Size.X/2 * 10 | |
3212 | temp.Y = v.Size.Y/2 * 10 | |
3213 | temp.Z = v.Size.Z/2 * 10 | |
3214 | Bounding[v.Name] = temp | |
3215 | --table.insert(Bounding, v.Name, temp) | |
3216 | end | |
3217 | ||
3218 | while wait(math.random(1,10)/10) do -- Emit the Lightning effects randomly | |
3219 | local Body1 = BodyParts[math.random(#BodyParts)] | |
3220 | local Body2 = BodyParts[math.random(#BodyParts)] | |
3221 | local Pos1 = Vector3.new( | |
3222 | math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10, | |
3223 | math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10, | |
3224 | math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10 | |
3225 | ) | |
3226 | local Pos2 = Vector3.new( | |
3227 | math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10, | |
3228 | math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10, | |
3229 | math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10 | |
3230 | ) | |
3231 | local SPos1 = Body1.Position + Pos1 | |
3232 | local SPos2 = Body2.Position + Pos2 | |
3233 | Lightning(SPos1, SPos2, 4, 3, "Bright blue", .3, .56) | |
3234 | end | |
3235 | -- ~CLarramore |