SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | --------------------------------------------------------------- | |
3 | local p = game.Players.LocalPlayer | |
4 | local char = p.Character | |
5 | local mouse = p:GetMouse() | |
6 | local larm = char["Left Arm"] | |
7 | local rarm = char["Right Arm"] | |
8 | local lleg = char["Left Leg"] | |
9 | local rleg = char["Right Leg"] | |
10 | local hed = char.Head | |
11 | local torso = char.Torso | |
12 | local hum = char.Humanoid | |
13 | local cam = game.Workspace.CurrentCamera | |
14 | local root = char.HumanoidRootPart | |
15 | local deb = false | |
16 | local shot = 0 | |
17 | local l = game:GetService("Lighting") | |
18 | local rs = game:GetService("RunService").RenderStepped | |
19 | local stanceToggle = "Normal" | |
20 | math.randomseed(os.time()) | |
21 | hum.WalkSpeed = 10 | |
22 | char.Health:Destroy() | |
23 | hum.MaxHealth = math.huge | |
24 | wait(0.1) | |
25 | hum.Health = math.huge | |
26 | ---------------------------------------------------- | |
27 | p:ClearCharacterAppearance() | |
28 | wait(0.1) | |
29 | p.Character.Head.BrickColor = BrickColor.new("Really black") | |
30 | p.Character.Torso.BrickColor = BrickColor.new("Really black") | |
31 | p.Character["Right Arm"].BrickColor = BrickColor.new("Really black") | |
32 | p.Character["Right Leg"].BrickColor = BrickColor.new("Really black") | |
33 | p.Character["Left Leg"].BrickColor = BrickColor.new("Really black") | |
34 | p.Character["Left Arm"].BrickColor = BrickColor.new("Really black") | |
35 | pcall(function() p.char.torso.roblox:Destroy() end) | |
36 | shirt = Instance.new("Shirt", char) | |
37 | shirt.Name = "Shirt" | |
38 | pants = Instance.new("Pants", char) | |
39 | pants.Name = "Pants" | |
40 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=235673625" | |
41 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=222859226" | |
42 | ---------------------------------------------------- | |
43 | ||
44 | ---------------------------------------------------- | |
45 | Debounces = { | |
46 | on = false; | |
47 | ks = false; | |
48 | CanAttack = true; | |
49 | CanJoke = true; | |
50 | NoIdl = false; | |
51 | Slashing = false; | |
52 | Slashed = false; | |
53 | Grabbing = false; | |
54 | Grabbed = false; | |
55 | } | |
56 | local Touche = {char.Name, } | |
57 | ---------------------------------------------------- | |
58 | function lerp(a, b, t) -- Linear interpolation | |
59 | return a + (b - a)*t | |
60 | end | |
61 | ||
62 | function slerp(a, b, t) --Spherical interpolation | |
63 | dot = a:Dot(b) | |
64 | if dot > 0.99999 or dot < -0.99999 then | |
65 | return t <= 0.5 and a or b | |
66 | else | |
67 | r = math.acos(dot) | |
68 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
69 | end | |
70 | end | |
71 | ||
72 | function matrixInterpolate(a, b, t) | |
73 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
74 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
75 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
76 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
77 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
78 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
79 | local t = v1:Dot(v2) | |
80 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
81 | return CFrame.new() | |
82 | end | |
83 | return CFrame.new( | |
84 | v0.x, v0.y, v0.z, | |
85 | v1.x, v1.y, v1.z, | |
86 | v2.x, v2.y, v2.z, | |
87 | v3.x, v3.y, v3.z) | |
88 | end | |
89 | ---------------------------------------------------- | |
90 | function genWeld(a,b) | |
91 | local w = Instance.new("Weld",a) | |
92 | w.Part0 = a | |
93 | w.Part1 = b | |
94 | return w | |
95 | end | |
96 | function weld(a, b) | |
97 | local weld = Instance.new("Weld") | |
98 | weld.Name = "W" | |
99 | weld.Part0 = a | |
100 | weld.Part1 = b | |
101 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
102 | weld.Parent = a | |
103 | return weld; | |
104 | end | |
105 | ---------------------------------------------------- | |
106 | function Lerp(c1,c2,al) | |
107 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
108 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
109 | for i,v in pairs(com1) do | |
110 | com1[i] = v+(com2[i]-v)*al | |
111 | end | |
112 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
113 | end | |
114 | ---------------------------------------------------- | |
115 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
116 | local wld = Instance.new("Weld", wp1) | |
117 | wld.Part0 = wp0 | |
118 | wld.Part1 = wp1 | |
119 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
120 | end | |
121 | ---------------------------------------------------- | |
122 | for i,v in pairs(char:children()) do | |
123 | if v:IsA("Hat") then | |
124 | v:Destroy() | |
125 | end | |
126 | end | |
127 | for i,v in pairs(hed:children()) do | |
128 | if v:IsA("Sound") then | |
129 | v:Destroy() | |
130 | end | |
131 | end | |
132 | ---------------------------------------------------- | |
133 | function HasntTouched(plrname) | |
134 | local ret = true | |
135 | for _, v in pairs(Touche) do | |
136 | if v == plrname then | |
137 | ret = false | |
138 | end | |
139 | end | |
140 | return ret | |
141 | end | |
142 | ---------------------------------------------------- | |
143 | larm.Size = larm.Size * 1 | |
144 | rarm.Size = rarm.Size * 1 | |
145 | lleg.Size = lleg.Size * 1 | |
146 | rleg.Size = rleg.Size * 1 | |
147 | torso.Size = torso.Size * 1 | |
148 | hed.Size = hed.Size * 1 | |
149 | root.Size = root.Size * 1 | |
150 | ---------------------------------------------------- | |
151 | newWeld(torso, larm, -1.5, 0.5, 0) | |
152 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
153 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
154 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
155 | newWeld(torso, hed, 0, 1.5, 0) | |
156 | newWeld(torso, lleg, -0.5, -1, 0) | |
157 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
158 | newWeld(torso, rleg, 0.5, -1, 0) | |
159 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
160 | newWeld(root, torso, 0, -1, 0) | |
161 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
162 | ---------------------------------------------------- | |
163 | z = Instance.new("Sound", char) | |
164 | z.SoundId = "rbxassetid://720696725"--209113706 | |
165 | z.Looped = true | |
166 | z.Pitch = 1 | |
167 | z.Volume = 1 | |
168 | wait(.01) | |
169 | z:Play() | |
170 | ---------------------------------------------------- | |
171 | wait(.5) | |
172 | ||
173 | ||
174 | ||
175 | ||
176 | ||
177 | ||
178 | local char2 = game.Players.LocalPlayer.Character | |
179 | local Mesh1 = Instance.new("SpecialMesh",larm) | |
180 | Mesh1.MeshId = "rbxassetid://184866952" | |
181 | Mesh1.Offset = Vector3.new(-1.400000012, 0, -0.5) | |
182 | Mesh1.Scale = Vector3.new(3, 3, 3) | |
183 | Mesh1.VertexColor = Vector3.new(0, 0, 1) | |
184 | Mesh1.TextureId = "rbxassetid://184867153" | |
185 | ||
186 | ||
187 | ||
188 | ||
189 | local Mesh2 = Instance.new("SpecialMesh",rarm) | |
190 | Mesh2.MeshId = "rbxassetid://101711855" | |
191 | Mesh2.Offset = Vector3.new(0.3,0.3,0) | |
192 | Mesh2.Scale = Vector3.new(2, 2, 2) | |
193 | Mesh2.VertexColor = Vector3.new(0, 0, 1) | |
194 | Mesh2.TextureId = "rbxassetid://101711673" | |
195 | ||
196 | local Mesh3 = Instance.new("SpecialMesh",torso) | |
197 | Mesh3.MeshId = "rbxassetid://101711956" | |
198 | Mesh3.Offset = Vector3.new(0,0,0) | |
199 | Mesh3.Scale = Vector3.new(2, 2, 2) | |
200 | Mesh3.VertexColor = Vector3.new(0, 0, 1) | |
201 | Mesh3.TextureId = "rbxassetid://101711673" | |
202 | ||
203 | ||
204 | local Mesh4 = Instance.new("SpecialMesh",rleg) | |
205 | Mesh4.MeshId = "rbxassetid://101711903" | |
206 | Mesh4.Offset = Vector3.new(0,0.2,0) | |
207 | Mesh4.Scale = Vector3.new(2.1, 2, 2.1) | |
208 | Mesh4.VertexColor = Vector3.new(0, 0, 1) | |
209 | Mesh4.TextureId = "rbxassetid://101711673" | |
210 | ||
211 | ||
212 | local Mesh5 = Instance.new("SpecialMesh",lleg) | |
213 | Mesh5.MeshId = "rbxassetid://101715656" | |
214 | Mesh5.Offset = Vector3.new(0,0.2,0) | |
215 | Mesh5.Scale = Vector3.new(2.1, 2, 2.1) | |
216 | Mesh5.VertexColor = Vector3.new(0, 0, 1) | |
217 | Mesh5.TextureId = "rbxassetid://101711673" | |
218 | ||
219 | ||
220 | ||
221 | ||
222 | Player=game:GetService("Players").LocalPlayer | |
223 | Character=Player.Character | |
224 | ||
225 | ||
226 | ||
227 | ||
228 | larm.Size = larm.Size * 2 | |
229 | rarm.Size = rarm.Size * 2 | |
230 | lleg.Size = lleg.Size * 2 | |
231 | rleg.Size = rleg.Size * 2 | |
232 | torso.Size = torso.Size * 2 | |
233 | hed.Size = hed.Size * 2 | |
234 | root.Size = root.Size * 2 | |
235 | ||
236 | newWeld(torso, larm, -1.5, 0.5, 0) | |
237 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
238 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
239 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
240 | newWeld(torso, hed, 0, 1.5, 0) | |
241 | newWeld(torso, lleg, -0.5, -1, 0) | |
242 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
243 | newWeld(torso, rleg, 0.5, -1, 0) | |
244 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
245 | newWeld(root, torso, 0, -1, 0) | |
246 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
247 | ||
248 | ||
249 | wait(0.5) | |
250 | ||
251 | ||
252 | ||
253 | ||
254 | local LocalPlayer = game:GetService("Players").LocalPlayer | |
255 | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() | |
256 | ||
257 | Character.Head.Transparency = 0 | |
258 | ||
259 | local Orb = Instance.new("Part", Character) | |
260 | Orb.Name = "Orb" | |
261 | ||
262 | Orb.CanCollide = false | |
263 | Orb.BrickColor = BrickColor.new("Institutional white") | |
264 | Orb.Transparency = 0 | |
265 | Orb.Material = "Plastic" | |
266 | Orb.Size = Vector3.new(1, 1, 1) | |
267 | ||
268 | ||
269 | local M = Instance.new("SpecialMesh") | |
270 | M.Parent = Orb | |
271 | M.MeshId = "http://www.roblox.com/asset/?id=0" | |
272 | M.Scale = Vector3.new( 1, 1, 1) | |
273 | ||
274 | ||
275 | local Weld = Instance.new("Weld", Orb) | |
276 | Weld.Part0 = Character.Head | |
277 | Weld.Part1 = Orb | |
278 | Weld.C1 = CFrame.new(0, -0.15, 0) | |
279 | --------------------------------------------------- | |
280 | ||
281 | local p = game.Players.LocalPlayer | |
282 | local char = p.Character | |
283 | ||
284 | CV="Deep blue" | |
285 | ||
286 | local txt = Instance.new("BillboardGui", char) | |
287 | txt.Adornee = char .Orb | |
288 | txt.Name = "_status" | |
289 | txt.Size = UDim2.new(2, 0, 2.4, 0) | |
290 | txt.StudsOffset = Vector3.new(-2, 1.5, 0) | |
291 | local text = Instance.new("TextLabel", txt) | |
292 | text.Size = UDim2.new(3, 0, 0.5, 0) | |
293 | text.FontSize = "Size8" | |
294 | text.TextScaled = true | |
295 | text.TextTransparency = 0 | |
296 | text.BackgroundTransparency = 1 | |
297 | text.TextTransparency = 0 | |
298 | text.TextStrokeTransparency = 0 | |
299 | text.Font = "Arial" | |
300 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
301 | ||
302 | v=Instance.new("Part") | |
303 | v.Name = "ColorBrick" | |
304 | v.Parent=p.Character | |
305 | v.FormFactor="Symmetric" | |
306 | v.Anchored=true | |
307 | v.CanCollide=false | |
308 | v.BottomSurface="Smooth" | |
309 | v.TopSurface="Smooth" | |
310 | v.Size=Vector3.new(10,5,3) | |
311 | v.Transparency=0.7 | |
312 | v.CFrame=char.Torso.CFrame | |
313 | v.BrickColor=BrickColor.new(CV) | |
314 | v.Transparency=1 | |
315 | text.TextColor3 = v.BrickColor.Color | |
316 | v.Shape="Block" | |
317 | text.Text = "Shadow Knight" | |
318 | ||
319 | ||
320 | ||
321 | ||
322 | ||
323 | -------------------------------------------------------- | |
324 | local Orbd = Instance.new("Part", Character) | |
325 | Orbd.Name = "Orbd" | |
326 | Orbd.Shape = Enum.PartType.Ball | |
327 | Orbd.CanCollide = false | |
328 | Orbd.BrickColor = BrickColor.new("Really black") | |
329 | Orbd.Transparency = 0 | |
330 | Orbd.Material = "Neon" | |
331 | Orbd.Size = Vector3.new(0.5, 0.5, 0.5) | |
332 | Orbd.TopSurface = Enum.SurfaceType.Smooth | |
333 | Orbd.BottomSurface = Enum.SurfaceType.Smooth | |
334 | ||
335 | local Weld = Instance.new("Weld", Orbd) | |
336 | Weld.Part0 = Character.Head | |
337 | Weld.Part1 = Orbd | |
338 | Weld.C1 = CFrame.new(-0.38, -0.1, 1.15) | |
339 | ||
340 | -------------------------------------------------------- | |
341 | local Orbvc = Instance.new("Part", Character) | |
342 | Orbvc.Name = "Orbvc" | |
343 | Orbvc.Shape = Enum.PartType.Ball | |
344 | Orbvc.CanCollide = false | |
345 | Orbvc.BrickColor = BrickColor.new("Really black") | |
346 | Orbvc.Transparency = 0 | |
347 | Orbvc.Material = "Neon" | |
348 | Orbvc.Size = Vector3.new(0.5, 0.5, 0.5) | |
349 | Orbvc.TopSurface = Enum.SurfaceType.Smooth | |
350 | Orbvc.BottomSurface = Enum.SurfaceType.Smooth | |
351 | ||
352 | local Weld = Instance.new("Weld", Orbvc) | |
353 | Weld.Part0 = Character.Head | |
354 | Weld.Part1 = Orbvc | |
355 | Weld.C1 = CFrame.new(0.38, -0.1, 1.15) | |
356 | -------------------------------------------------------- | |
357 | ||
358 | ||
359 | local Orbvc2 = Instance.new("Part", Character) | |
360 | Orbvc2.Name = "Orbvc" | |
361 | Orbvc2.Shape = Enum.PartType.Ball | |
362 | Orbvc2.CanCollide = false | |
363 | Orbvc2.BrickColor = BrickColor.new("White") | |
364 | Orbvc2.Transparency = 0 | |
365 | Orbvc2.Material = "Neon" | |
366 | Orbvc2.Size = Vector3.new(1, 1, 1) | |
367 | Orbvc2.TopSurface = Enum.SurfaceType.Smooth | |
368 | Orbvc2.BottomSurface = Enum.SurfaceType.Smooth | |
369 | ||
370 | local Weld = Instance.new("Weld", Orbvc2) | |
371 | Weld.Part0 = larm | |
372 | Weld.Part1 = Orbvc2 | |
373 | Weld.C1 = CFrame.new(0.78, 3.5, 0.75) | |
374 | -------------------------------------------------------- | |
375 | ||
376 | ||
377 | ||
378 | ||
379 | ||
380 | Glow1 = Color3.new(0,0,0) | |
381 | Glow2 = Color3.new(0,0,1) | |
382 | Glow3 = Color3.new(.6,.6,1) | |
383 | Glow4 = Color3.new(0,0,0.5) | |
384 | GlowParticle = Instance.new("ParticleEmitter",Orbd) | |
385 | GlowParticle.LightEmission = 1 | |
386 | GlowParticle.Color = ColorSequence.new(Glow2,Glow1) | |
387 | GlowParticle.Size = NumberSequence.new(0.6) | |
388 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=118641183" | |
389 | GlowParticle.LockedToPart = false | |
390 | GlowParticle.Lifetime = NumberRange.new(.5,1) | |
391 | GlowParticle.Rate= 200 | |
392 | GlowParticle.Speed =NumberRange.new(0.5) | |
393 | GlowParticle.Acceleration = Vector3.new(0, 2, 0) | |
394 | GlowParticle.VelocitySpread = 50 | |
395 | GlowParticle.Transparency = NumberSequence.new(.3,.8) | |
396 | ||
397 | GlowParticle2 = Instance.new("ParticleEmitter",Orbvc) | |
398 | GlowParticle2.LightEmission = 1 | |
399 | GlowParticle2.Color = ColorSequence.new(Glow2,Glow1) | |
400 | GlowParticle2.Size = NumberSequence.new(0.6) | |
401 | GlowParticle2.Texture = "http://www.roblox.com/asset/?id=118641183" | |
402 | GlowParticle2.LockedToPart = false | |
403 | GlowParticle2.Lifetime = NumberRange.new(.5,1) | |
404 | GlowParticle2.Rate= 200 | |
405 | GlowParticle2.Speed =NumberRange.new(0.5) | |
406 | GlowParticle2.Acceleration = Vector3.new(0, 2, 0) | |
407 | GlowParticle2.VelocitySpread = 50 | |
408 | GlowParticle2.Transparency = NumberSequence.new(.3,.8) | |
409 | ||
410 | GlowParticle3 = Instance.new("ParticleEmitter",Orbd) | |
411 | GlowParticle3.LightEmission = 1 | |
412 | GlowParticle3.Color = ColorSequence.new(Glow3,Glow1) | |
413 | GlowParticle3.Size = NumberSequence.new(0.5) | |
414 | GlowParticle3.Texture = "http://www.roblox.com/asset/?id=118641183" | |
415 | GlowParticle3.LockedToPart = true | |
416 | GlowParticle3.Lifetime = NumberRange.new(.5,1) | |
417 | GlowParticle3.Rate= 200 | |
418 | GlowParticle3.Speed =NumberRange.new(0.1) | |
419 | GlowParticle3.Acceleration = Vector3.new(0, 1, 0) | |
420 | GlowParticle3.VelocitySpread = 100 | |
421 | GlowParticle3.Transparency = NumberSequence.new(.3,.8) | |
422 | ||
423 | GlowParticle4 = Instance.new("ParticleEmitter",Orbvc) | |
424 | GlowParticle4.LightEmission = 1 | |
425 | GlowParticle4.Color = ColorSequence.new(Glow3,Glow1) | |
426 | GlowParticle4.Size = NumberSequence.new(0.5) | |
427 | GlowParticle4.Texture = "http://www.roblox.com/asset/?id=118641183" | |
428 | GlowParticle4.LockedToPart = true | |
429 | GlowParticle4.Lifetime = NumberRange.new(.5,1) | |
430 | GlowParticle4.Rate= 200 | |
431 | GlowParticle4.Speed =NumberRange.new(0.1) | |
432 | GlowParticle4.Acceleration = Vector3.new(0, 1, 0) | |
433 | GlowParticle4.VelocitySpread = 100 | |
434 | GlowParticle4.Transparency = NumberSequence.new(.3,.8) | |
435 | ||
436 | GlowParticle5 = Instance.new("ParticleEmitter",Orbvc2) | |
437 | GlowParticle5.LightEmission = 1 | |
438 | GlowParticle5.Color = ColorSequence.new(Glow2,Glow1) | |
439 | GlowParticle5.Size = NumberSequence.new(0.4) | |
440 | GlowParticle5.Texture = "http://www.roblox.com/asset/?id=118641183" | |
441 | GlowParticle5.LockedToPart = true | |
442 | GlowParticle5.Lifetime = NumberRange.new(.5,1) | |
443 | GlowParticle5.Rate= 600 | |
444 | GlowParticle5.Speed =NumberRange.new(0.2) | |
445 | GlowParticle5.Acceleration = Vector3.new(0, 0, 0) | |
446 | GlowParticle5.VelocitySpread = 100 | |
447 | GlowParticle5.Transparency = NumberSequence.new(0,.5) | |
448 | ||
449 | ||
450 | ||
451 | ||
452 | ||
453 | ||
454 | ||
455 | ||
456 | ||
457 | ||
458 | ||
459 | ||
460 | ||
461 | ||
462 | ||
463 | ||
464 | ||
465 | ||
466 | ||
467 | ||
468 | ||
469 | ||
470 | ||
471 | ||
472 | ||
473 | ||
474 | ||
475 | ||
476 | ||
477 | ||
478 | ||
479 | ||
480 | game.Lighting.Ambient = Color3.new(0,0,0.5) | |
481 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"The Shadow awakens!", "Blue") | |
482 | ||
483 | ||
484 | ---------------------------------------------------------- | |
485 | Player=game:GetService("Players").LocalPlayer | |
486 | Character=Player.Character | |
487 | ||
488 | local Mask = Instance.new("Part", Character) | |
489 | Mask.Name = "Mask" | |
490 | Mask.CanCollide = false | |
491 | Mask.BrickColor = BrickColor.new("Really black") | |
492 | Mask.Transparency = 0 | |
493 | Mask.Material = "Neon" | |
494 | Mask.Size = Vector3.new(0.1, 0.1, 0.1) | |
495 | Mask.TopSurface = Enum.SurfaceType.Smooth | |
496 | Mask.BottomSurface = Enum.SurfaceType.Smooth | |
497 | ||
498 | local Weld = Instance.new("Weld", Mask) | |
499 | Weld.Part0 = Character.Head | |
500 | Weld.Part1 = Mask | |
501 | Weld.C1 = CFrame.new(0,0,0.1) | |
502 | ||
503 | local M1 = Instance.new("SpecialMesh") | |
504 | M1.Parent = Mask | |
505 | M1.MeshId = "http://www.roblox.com/asset/?id=74888095" | |
506 | M1.VertexColor = Vector3.new(0, 0, 0.2) | |
507 | M1.TextureId = "rbxassetid://361990490" | |
508 | M1.Scale = Vector3.new(2.1, 2.1, 2.16) | |
509 | ---------------------------------------------------------- | |
510 | ||
511 | ||
512 | ||
513 | ||
514 | ||
515 | l.TimeOfDay = 24 | |
516 | ||
517 | hed.BrickColor = BrickColor.new("Really black") | |
518 | lite = Instance.new("PointLight", rleg) | |
519 | lite.Brightness = 30 | |
520 | lite.Range = 20 | |
521 | lite.Color = Color3.new(.5, .5, 1) | |
522 | --[[local hed2 = hed:Clone() | |
523 | hed2.CanCollide = false | |
524 | hed2.Parent = char | |
525 | hed2:ClearAllChildren() | |
526 | hed2.Transparency = 1 | |
527 | hed2.Name = "DARP" | |
528 | local w = Instance.new("Weld",hed2) | |
529 | w.Part0 = hed | |
530 | w.Part1 = hed2 | |
531 | w.C0 = CFrame.new(0,0,-0.175) | |
532 | z=Instance.new("SurfaceGui",hed2) | |
533 | z.Enabled = true | |
534 | z.Face = "Front" | |
535 | z.Adornee = hed2 | |
536 | z.CanvasSize = Vector2.new(100,100) | |
537 | local face = Instance.new("ImageLabel",z) | |
538 | face.Size = UDim2.new(1,-30,1,0) | |
539 | face.Position = UDim2.new(0,15,0,0) | |
540 | face.BackgroundTransparency = 1 | |
541 | face.Image='rbxassetid://46282671']]-- | |
542 | ---------------------------------------------------- | |
543 | ||
544 | ---------------------------------------------------- | |
545 | local m = Instance.new("Model") | |
546 | m.Name = "Titanius" | |
547 | ||
548 | ||
549 | ||
550 | p6 = Instance.new("Part", m) | |
551 | p6.Name = "Handle" | |
552 | p6.BrickColor = BrickColor.new("Really black") | |
553 | p6.FormFactor = Enum.FormFactor.Custom | |
554 | p6.Size = Vector3.new(1.5999999, 13.6000004, 1) | |
555 | p6.CFrame = CFrame.new(67.5017471, 11.2780685, 66.1421967, -1.18190947e-005, 6.28741009e-006, 0.999972522, 0.99995929, -1.39772892e-005, -7.50630716e-006, -1.79708004e-005, 0.999939024, 1.01296728e-005) | |
556 | p6.CanCollide = false | |
557 | p6.Locked = true | |
558 | p6.Elasticity = 0 | |
559 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
560 | p6.TopSurface = Enum.SurfaceType.Smooth | |
561 | b6 = Instance.new("SpecialMesh",p6) | |
562 | b6.MeshId = "rbxassetid://524552820" | |
563 | b6.Offset = Vector3.new(0,5,0) | |
564 | b6.Scale = Vector3.new(0.011, 0.01, 0.014) | |
565 | b6.VertexColor = Vector3.new(0, 0, 1) | |
566 | b6.TextureId = "rbxassetid://524552836" | |
567 | p12 = Instance.new("Part", m) | |
568 | p12.Name = "BladeCenter" | |
569 | p12.BrickColor = BrickColor.new("Navy blue") | |
570 | p12.Material = "Neon" | |
571 | p12.FormFactor = Enum.FormFactor.Symmetric | |
572 | p12.Size = Vector3.new(1, 1, 1) | |
573 | p12.CFrame = CFrame.new(67.4995346, 6.83217764, 72.2514038, -0.999972522, 2.42275873e-005, 0.000103325896, -8.39982677e-005, 4.44650614e-005, -0.999960959, -4.06451727e-005, -0.999940753, -1.25430051e-005) | |
574 | p12.CanCollide = false | |
575 | p12.Locked = true | |
576 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
577 | p12.TopSurface = Enum.SurfaceType.Smooth | |
578 | b12 = Instance.new("SpecialMesh", p12) | |
579 | b12.MeshType = Enum.MeshType.Brick | |
580 | b12.Name = "Mesh" | |
581 | b12.Scale = Vector3.new(0.499999911, 1, 0.699999928) | |
582 | p18 = Instance.new("WedgePart", m) | |
583 | p18.BrickColor = BrickColor.new("Navy blue") | |
584 | p18.Name = "BladePart1" | |
585 | p18.Material = "Neon" | |
586 | p18.Name = "Wedge" | |
587 | p18.FormFactor = Enum.FormFactor.Symmetric | |
588 | p18.Size = Vector3.new(1, 1, 1) | |
589 | p18.CFrame = CFrame.new(67.499321, 6.83199787, 69.4816895, 0.999972522, -3.68033288e-005, -4.22928351e-005, 2.29664256e-005, -1.65102574e-005, 0.999963701, -2.03872096e-005, -0.999943435, -4.84290831e-005) | |
590 | p18.CanCollide = false | |
591 | p18.Locked = true | |
592 | p18.BottomSurface = Enum.SurfaceType.Smooth | |
593 | p18.TopSurface = Enum.SurfaceType.Smooth | |
594 | b18 = Instance.new("SpecialMesh", p18) | |
595 | b18.MeshType = Enum.MeshType.Wedge | |
596 | b18.Name = "Mesh" | |
597 | b18.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928) | |
598 | p19 = Instance.new("WedgePart", m) | |
599 | p19.BrickColor = BrickColor.new("Navy blue") | |
600 | p19.Name = "BladePart2" | |
601 | p19.Material = "Neon" | |
602 | p19.Name = "Wedge" | |
603 | p19.FormFactor = Enum.FormFactor.Symmetric | |
604 | p19.Size = Vector3.new(1, 4, 2) | |
605 | p19.CFrame = CFrame.new(67.4994736, 6.83213568, 75.0314102, -0.999972522, 3.68059118e-005, -0.000103325001, -8.40002976e-005, -4.4521752e-005, 0.999963701, 2.03864402e-005, 0.999943435, 1.26029336e-005) | |
606 | p19.CanCollide = false | |
607 | p19.Locked = true | |
608 | p19.BottomSurface = Enum.SurfaceType.Smooth | |
609 | p19.TopSurface = Enum.SurfaceType.Smooth | |
610 | b19 = Instance.new("SpecialMesh", p19) | |
611 | b19.MeshType = Enum.MeshType.Wedge | |
612 | b19.Name = "Mesh" | |
613 | b19.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928) | |
614 | ||
615 | ||
616 | w6 = Instance.new("Weld", p6) | |
617 | w6.Name = "Part_Weld" | |
618 | w6.Part0 = p6 | |
619 | w6.C0 = CFrame.new(-11.2799978, -66.1456223, -67.5023346, -4.37113883e-008, 1, 4.37113883e-008, 0, -4.37113883e-008, 1, 1, 4.37113883e-008, 1.91068547e-015) | |
620 | ||
621 | ||
622 | w12 = Instance.new("Weld", p12) | |
623 | w12.Name = "Part_Weld" | |
624 | w12.Part0 = p12 | |
625 | w12.C0 = CFrame.new(67.5028763, 72.2527161, 6.8300252, -1, -9.15522687e-005, -3.05189751e-005, 3.05161811e-005, 3.05189751e-005, -1, 9.15532e-005, -1, -3.05161811e-005) | |
626 | ||
627 | ||
628 | w18 = Instance.new("Weld", p18) | |
629 | w18.Name = "Wedge_Weld" | |
630 | w18.Part0 = p18 | |
631 | w18.C0 = CFrame.new(-67.4979324, 69.4871521, -6.82958078, 1, 3.05171125e-005, -3.05180438e-005, -3.05171125e-005, -3.05180438e-005, -1, -3.05180438e-005, 1, -3.05171125e-005) | |
632 | w18.Part1 = p19 | |
633 | w18.C1 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005) | |
634 | w19 = Instance.new("Weld", p19) | |
635 | w19.Name = "Part_Weld" | |
636 | w19.Part0 = p19 | |
637 | w19.C0 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005) | |
638 | ||
639 | m.Parent = char | |
640 | m:MakeJoints() | |
641 | ---------------------------------------------------- | |
642 | local cor = Instance.new("Part", char.Titanius) | |
643 | cor.Name = "Thingy" | |
644 | cor.Locked = true | |
645 | cor.BottomSurface = 0 | |
646 | cor.CanCollide = false | |
647 | cor.Size = Vector3.new(1, 13, 1) | |
648 | cor.Transparency = 1 | |
649 | cor.TopSurface = 0 | |
650 | corw = Instance.new("Weld", cor) | |
651 | corw.Part0 = rarm | |
652 | corw.Part1 = cor | |
653 | corw.C0 = CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
654 | corw.C1 = CFrame.new(0, 0, 0) | |
655 | weld1 = Instance.new("Weld", char.Titanius) | |
656 | weld1.Part0 = cor | |
657 | weld1.Part1 = p6 | |
658 | weld1.C0 = CFrame.new(0, 0, 0) | |
659 | ---------------------------------------------------- | |
660 | hitb = Instance.new("Part", char.Titanius) | |
661 | hitb.Name = "Thingy2" | |
662 | hitb.Locked = true | |
663 | hitb.BottomSurface = 0 | |
664 | hitb.CanCollide = false | |
665 | hitb.Size = Vector3.new(0, 30, 0) | |
666 | hitb.Transparency = 1 | |
667 | hitb.TopSurface = 0 | |
668 | weld2 = Instance.new("Weld", char.Titanius) | |
669 | weld2.Part0 = hitb | |
670 | weld2.Part1 = p6 | |
671 | weld2.C0 = CFrame.new(0, .6, 0) | |
672 | ---------------------------------------------------- | |
673 | ||
674 | ||
675 | ||
676 | ||
677 | ||
678 | ||
679 | ||
680 | ---------------------------------------------------- | |
681 | function weld5(part0, part1, c0, c1) | |
682 | weeld=Instance.new("Weld", part0) | |
683 | weeld.Part0=part0 | |
684 | weeld.Part1=part1 | |
685 | weeld.C0=c0 | |
686 | weeld.C1=c1 | |
687 | return weeld | |
688 | end | |
689 | ---------------------------------------------------- | |
690 | function newRay(start,face,range,wat) | |
691 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
692 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
693 | return rey,hit,pos | |
694 | end | |
695 | ---------------------------------------------------- | |
696 | mod5 = Instance.new("Model",char) | |
697 | ||
698 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
699 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
700 | local List = {} | |
701 | for i,v in pairs(workspace:GetChildren())do | |
702 | if v:IsA("Model")then | |
703 | if v:findFirstChild("Torso")then | |
704 | if v ~= char then | |
705 | if(v.Torso.Position -Position).magnitude <= Distance then | |
706 | table.insert(List,v) | |
707 | end | |
708 | end | |
709 | end | |
710 | end | |
711 | end | |
712 | return List | |
713 | end | |
714 | ||
715 | function Landing() | |
716 | part=Instance.new('Part',mod5) | |
717 | part.Anchored=true | |
718 | part.CanCollide=false | |
719 | part.FormFactor='Custom' | |
720 | part.Size=Vector3.new(.2,.2,.2) | |
721 | part.CFrame=root.CFrame*CFrame.new(0,-2,0) | |
722 | part.Transparency=.7 | |
723 | part.BrickColor=BrickColor.new('Really black') | |
724 | mesh=Instance.new('SpecialMesh',part) | |
725 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
726 | mesh.Scale=Vector3.new(10,5,10) | |
727 | ||
728 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do | |
729 | if v:FindFirstChild('Humanoid') then | |
730 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
731 | v.Humanoid.PlatformStand = true | |
732 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
733 | end | |
734 | end | |
735 | ||
736 | coroutine.resume(coroutine.create(function() | |
737 | for i=0,3.8,0.05 do | |
738 | wait() | |
739 | part.CFrame=part.CFrame | |
740 | part.Transparency=i | |
741 | mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1) | |
742 | end | |
743 | part.Parent = nil | |
744 | end)) | |
745 | end | |
746 | ---------------------------------------------------- | |
747 | mod4 = Instance.new("Model",char) | |
748 | ||
749 | ptez = {0.7, 0.8, 0.9, 1} | |
750 | ||
751 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
752 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
753 | local List = {} | |
754 | for i,v in pairs(workspace:GetChildren())do | |
755 | if v:IsA("Model")then | |
756 | if v:findFirstChild("Torso")then | |
757 | if v ~= char then | |
758 | if(v.Torso.Position -Position).magnitude <= Distance then | |
759 | table.insert(List,v) | |
760 | end | |
761 | end | |
762 | end | |
763 | end | |
764 | end | |
765 | return List | |
766 | end | |
767 | ||
768 | function GroundPound() | |
769 | part=Instance.new('Part',mod4) | |
770 | part.Anchored=true | |
771 | part.CanCollide=false | |
772 | part.FormFactor='Custom' | |
773 | part.Size=Vector3.new(.2,.2,.2) | |
774 | part.CFrame=root.CFrame*CFrame.new(0,-5.8,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
775 | part.Transparency=.7 | |
776 | part.BrickColor=BrickColor.new('Really black') | |
777 | mesh=Instance.new('SpecialMesh',part) | |
778 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
779 | mesh.Scale=Vector3.new(3,3,3) | |
780 | part2=Instance.new('Part',mod4) | |
781 | part2.Anchored=true | |
782 | part2.CanCollide=false | |
783 | part2.FormFactor='Custom' | |
784 | part2.Size=Vector3.new(.2,.2,.2) | |
785 | part2.CFrame=root.CFrame*CFrame.new(0,-5,-2.6) | |
786 | part2.Transparency=.7 | |
787 | part2.BrickColor=BrickColor.new('Navy blue') | |
788 | mesh2=Instance.new('SpecialMesh',part2) | |
789 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
790 | mesh2.Scale=Vector3.new(3,1.5,3) | |
791 | x = Instance.new("Sound",char) | |
792 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
793 | x.Pitch = ptez[math.random(1,#ptez)] | |
794 | x.Volume = 1 | |
795 | wait(.1) | |
796 | x:Play() | |
797 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,12))do | |
798 | if v:FindFirstChild('Humanoid') then | |
799 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
800 | end | |
801 | end | |
802 | coroutine.resume(coroutine.create(function() | |
803 | for i=0,0.62,0.13 do | |
804 | wait() | |
805 | part.CFrame=part.CFrame | |
806 | part.Transparency=i | |
807 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
808 | part2.CFrame=part2.CFrame | |
809 | part2.Transparency=i | |
810 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
811 | end | |
812 | part.Parent=nil | |
813 | part2.Parent=nil | |
814 | x:Destroy() | |
815 | end)) | |
816 | end | |
817 | ---------------------------------------------------- | |
818 | mod=Instance.new('Model',char) | |
819 | ||
820 | function charge() | |
821 | hed.Velocity=hed.CFrame.lookVector*100 | |
822 | part=Instance.new('Part',mod) | |
823 | part.Anchored=true | |
824 | part.CanCollide=false | |
825 | part.FormFactor='Custom' | |
826 | part.Size=Vector3.new(.2,.2,.2) | |
827 | part.CFrame=hed.CFrame*CFrame.Angles(math.rad(90),0,0) | |
828 | part.Transparency=.7 | |
829 | part.BrickColor=BrickColor.new('Black') | |
830 | mesh=Instance.new('SpecialMesh',part) | |
831 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
832 | mesh.Scale=Vector3.new(10,5,10) | |
833 | part2=part:clone() | |
834 | part2.Parent=mod | |
835 | part2.BrickColor=BrickColor.new('Bright red') | |
836 | mesh2=mesh:clone() | |
837 | mesh2.Parent=part2 | |
838 | mesh2.Scale=Vector3.new(20,10,20) | |
839 | part3=part2:clone() | |
840 | part3.Parent = mod | |
841 | part3.BrickColor=BrickColor.new('Really black') | |
842 | mesh3=mesh2:clone() | |
843 | mesh2.Parent=part3 | |
844 | mesh3.Scale=Vector3.new(30,15,30) | |
845 | coroutine.resume(coroutine.create(function() | |
846 | for i=0,1,0.1 do | |
847 | wait() | |
848 | part.CFrame=part.CFrame | |
849 | part.Transparency=i | |
850 | mesh.Scale=mesh.Scale+Vector3.new(1,1,1) | |
851 | part2.CFrame=part2.CFrame | |
852 | part2.Transparency=i | |
853 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
854 | part3.CFrame=part3.CFrame | |
855 | part3.Transparency=i | |
856 | mesh3.Scale=mesh3.Scale+Vector3.new(1,1,1) | |
857 | end | |
858 | part.Parent=nil | |
859 | part2.Parent=nil | |
860 | part3.Parent = nil | |
861 | end)) | |
862 | end | |
863 | ---------------------------------------------------- | |
864 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
865 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
866 | local List = {} | |
867 | for i,v in pairs(workspace:GetChildren())do | |
868 | if v:IsA("Model")then | |
869 | if v:findFirstChild("Torso")then | |
870 | if v ~= char then | |
871 | if(v.Torso.Position -Position).magnitude <= Distance then | |
872 | table.insert(List,v) | |
873 | end | |
874 | end | |
875 | end | |
876 | end | |
877 | end | |
878 | return List | |
879 | end | |
880 | ||
881 | mod3 = Instance.new("Model",rleg) | |
882 | ||
883 | function Stomp() | |
884 | part=Instance.new('Part',mod3) | |
885 | part.Anchored=true | |
886 | part.CanCollide=false | |
887 | part.FormFactor='Custom' | |
888 | part.Size=Vector3.new(.2,.2,.2) | |
889 | part.CFrame=rleg.CFrame*CFrame.new(0,-2.4,0)*CFrame.Angles(math.rad(90),0,0) | |
890 | part.Transparency=.7 | |
891 | part.BrickColor=BrickColor.new('Navy blue') | |
892 | mesh=Instance.new('SpecialMesh',part) | |
893 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
894 | mesh.Scale=Vector3.new(25,25,25) | |
895 | part2=part:clone() | |
896 | part2.Parent=mod3 | |
897 | part2.BrickColor=BrickColor.new('Navy blue') | |
898 | mesh2=mesh:clone() | |
899 | mesh2.Parent=part2 | |
900 | mesh2.Scale=Vector3.new(15,15,15) | |
901 | part3=part:clone() | |
902 | part3.Parent=mod3 | |
903 | part3.TopSurface=0 | |
904 | part3.BottomSurface=0 | |
905 | part3.CFrame=rleg.CFrame*CFrame.new(0,-3,0) | |
906 | mesh3=Instance.new('SpecialMesh',part3) | |
907 | mesh3.MeshType = 3 | |
908 | mesh3.Scale=Vector3.new(12,12,12) | |
909 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do | |
910 | if v:FindFirstChild('Humanoid') then | |
911 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
912 | v.Humanoid.PlatformStand = true | |
913 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 800 | |
914 | end | |
915 | end | |
916 | coroutine.resume(coroutine.create(function() | |
917 | for i=0,3.8,0.05 do | |
918 | wait() | |
919 | part.CFrame=part.CFrame | |
920 | part.Transparency=i | |
921 | mesh.Scale=mesh.Scale+Vector3.new(2.8,2.8,2.8) | |
922 | part2.CFrame=part2.CFrame | |
923 | part2.Transparency=i | |
924 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
925 | part3.CFrame=part3.CFrame | |
926 | part3.Transparency=i | |
927 | mesh3.Scale=mesh3.Scale+Vector3.new(1.5,1.5,1.5) | |
928 | end | |
929 | end)) | |
930 | end | |
931 | ---------------------------------------------------- | |
932 | ||
933 | local acos = math.acos | |
934 | local sqrt = math.sqrt | |
935 | local Vec3 = Vector3.new | |
936 | local fromAxisAngle = CFrame.fromAxisAngle | |
937 | ||
938 | local function toAxisAngle(CFr) | |
939 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
940 | local Angle = math.acos((R00+R11+R22-1)/2) | |
941 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
942 | A = A == 0 and 0.00001 or A | |
943 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
944 | B = B == 0 and 0.00001 or B | |
945 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
946 | C = C == 0 and 0.00001 or C | |
947 | local x = (R21-R12)/sqrt(A) | |
948 | local y = (R02-R20)/sqrt(B) | |
949 | local z = (R10-R01)/sqrt(C) | |
950 | return Vec3(x,y,z),Angle | |
951 | end | |
952 | ||
953 | function ApplyTrig(Num,Func) | |
954 | local Min,Max = Func(0),Func(1) | |
955 | local i = Func(Num) | |
956 | return (i-Min)/(Max-Min) | |
957 | --[[if Func == "sin" then | |
958 | return (math.sin((1-Num)*math.pi)+1)/2 | |
959 | elseif Func == "cos" then | |
960 | return (math.cos((1-Num)*math.pi)+1)/2 | |
961 | end]] | |
962 | end | |
963 | ||
964 | function LerpCFrame(CFrame1,CFrame2,Num) | |
965 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
966 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
967 | end | |
968 | ||
969 | function Crater(Torso,Radius) | |
970 | Spawn(function() | |
971 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
972 | local Ignore = {} | |
973 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
974 | if v.Character ~= nil then | |
975 | Ignore[#Ignore+1] = v.Character | |
976 | end | |
977 | end | |
978 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
979 | if Hit == nil then return end | |
980 | local Parts = {} | |
981 | for i = 1,360,10 do | |
982 | local P = Instance.new("Part",Torso.Parent) | |
983 | P.Anchored = true | |
984 | P.FormFactor = "Custom" | |
985 | P.BrickColor = Hit.BrickColor | |
986 | P.Material = Hit.Material | |
987 | P.TopSurface = "Smooth" | |
988 | P.BottomSurface = "Smooth" | |
989 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
990 | 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))) | |
991 | 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} | |
992 | if math.random(0,5) == 0 then -- rubble | |
993 | local P = Instance.new("Part",Torso.Parent) | |
994 | P.Anchored = true | |
995 | P.FormFactor = "Custom" | |
996 | P.BrickColor = Hit.BrickColor | |
997 | P.Material = Hit.Material | |
998 | P.TopSurface = "Smooth" | |
999 | P.BottomSurface = "Smooth" | |
1000 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
1001 | 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))) | |
1002 | 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} | |
1003 | end | |
1004 | end | |
1005 | for i = 0,1,0.05 do | |
1006 | for i2,v in pairs(Parts) do | |
1007 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
1008 | end | |
1009 | wait(0.02) | |
1010 | end | |
1011 | for i,v in pairs(Parts) do | |
1012 | if v[1].Size.X > 2.1 then | |
1013 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
1014 | end | |
1015 | v[1].Anchored = false | |
1016 | end | |
1017 | for i = 0,1,0.05 do | |
1018 | for i2,v in pairs(Parts) do | |
1019 | v[1].Transparency = i | |
1020 | if i == 1 then | |
1021 | v[1]:Destroy() | |
1022 | elseif i >= 0.25 then | |
1023 | v[1].CanCollide = false | |
1024 | end | |
1025 | end | |
1026 | wait(0.02) | |
1027 | end | |
1028 | Parts = nil | |
1029 | end) | |
1030 | end | |
1031 | ||
1032 | ---------------------------------------------------- | |
1033 | mouse.KeyDown:connect(function(key) | |
1034 | if key == "r" then | |
1035 | ||
1036 | if Debounces.CanAttack == true then | |
1037 | Debounces.CanAttack = false | |
1038 | Debounces.on = true | |
1039 | Debounces.NoIdl = true | |
1040 | to = char.Titanius.Thingy2.Touched:connect(function(ht) | |
1041 | hit = ht.Parent | |
1042 | if ht and hit:IsA("Model") then | |
1043 | if hit:FindFirstChild("Humanoid") then | |
1044 | if hit.Name ~= p.Name then | |
1045 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1046 | Debounces.Slashed = true]]-- | |
1047 | hit:FindFirstChild("Humanoid"):TakeDamage(19999999) | |
1048 | wait(1) | |
1049 | --Debounces.Slashed = false | |
1050 | --end | |
1051 | end | |
1052 | end | |
1053 | elseif ht and hit:IsA("Hat") then | |
1054 | if hit.Parent.Name ~= p.Name then | |
1055 | if hit.Parent:FindFirstChild("Humanoid") then | |
1056 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
1057 | Debounces.Slashed = true]]-- | |
1058 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(109999999) | |
1059 | wait(1) | |
1060 | --Debounces.Slashed = false | |
1061 | end | |
1062 | end | |
1063 | end | |
1064 | end) | |
1065 | q = Instance.new("Sound",hed) | |
1066 | q.SoundId = "http://www.roblox.com/asset/?id=134012322" | |
1067 | q.Pitch = 0.85 | |
1068 | q.Looped = false | |
1069 | q1 = Instance.new("Sound",hed) | |
1070 | q1.SoundId = "http://www.roblox.com/asset/?id=134012322" | |
1071 | q1.Pitch = 0.85 | |
1072 | q1.Looped = false | |
1073 | q:Play() | |
1074 | q1:Play() | |
1075 | for i = 1,20 do | |
1076 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.4) | |
1077 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.4) | |
1078 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.4) | |
1079 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 4, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.4) | |
1080 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 1) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.4) | |
1081 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.4) | |
1082 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -2.2, -3) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(0)), 0.5) | |
1083 | if Debounces.on == false then break end | |
1084 | wait() | |
1085 | end | |
1086 | n = Instance.new("Sound",hed) | |
1087 | n.SoundId = "http://www.roblox.com/asset/?id=168514932" | |
1088 | n.Pitch = 0.94 | |
1089 | n.Looped = false | |
1090 | n1 = Instance.new("Sound",hed) | |
1091 | n1.SoundId = "http://www.roblox.com/asset/?id=168514932" | |
1092 | n1.Pitch = 0.94 | |
1093 | n1.Looped = false | |
1094 | n:Play() | |
1095 | n1:Play() | |
1096 | b = Instance.new("Sound",hed) | |
1097 | b.SoundId = "http://www.roblox.com/asset/?id=168586586" | |
1098 | b.Pitch = 0.94 | |
1099 | b.Looped = false | |
1100 | b1 = Instance.new("Sound",hed) | |
1101 | b1.SoundId = "http://www.roblox.com/asset/?id=168586586" | |
1102 | b1.Pitch = 0.94 | |
1103 | b1.Looped = false | |
1104 | b:Play() | |
1105 | b1:Play() | |
1106 | for i = 1,26 do | |
1107 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.5) | |
1108 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.5) | |
1109 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),0.5) | |
1110 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), 0), 0.5) | |
1111 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -1) * CFrame.Angles(math.rad(50), 0, math.rad(0)), 0.5) | |
1112 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .4) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.5) | |
1113 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 0.5) | |
1114 | if Debounces.on == false then break end | |
1115 | wait() | |
1116 | end | |
1117 | wait(.5) | |
1118 | to:disconnect() | |
1119 | q:Destroy() | |
1120 | q1:Destroy() | |
1121 | n:Destroy() | |
1122 | n1:Destroy() | |
1123 | if Debounces.CanAttack == false then | |
1124 | Debounces.CanAttack = true | |
1125 | Debounces.on = false | |
1126 | Debounces.NoIdl = false | |
1127 | end | |
1128 | end | |
1129 | end | |
1130 | end) | |
1131 | ---------------------------------------------------- | |
1132 | mouse.KeyDown:connect(function(key) | |
1133 | if key == "q" then | |
1134 | if Debounces.CanAttack == true then | |
1135 | Debounces.CanAttack = false | |
1136 | Debounces.on = true | |
1137 | Debounces.NoIdl = true | |
1138 | to = char.Titanius.Thingy2.Touched:connect(function(ht) | |
1139 | hit = ht.Parent | |
1140 | if ht and hit:IsA("Model") then | |
1141 | if hit:FindFirstChild("Humanoid") then | |
1142 | if hit.Name ~= p.Name then | |
1143 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1144 | Debounces.Slashed = true]]-- | |
1145 | hit:FindFirstChild("Humanoid"):TakeDamage(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) | |
1146 | wait(1) | |
1147 | --Debounces.Slashed = false | |
1148 | --end | |
1149 | end | |
1150 | end | |
1151 | elseif ht and hit:IsA("Hat") then | |
1152 | if hit.Parent.Name ~= p.Name then | |
1153 | if hit.Parent:FindFirstChild("Humanoid") then | |
1154 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
1155 | Debounces.Slashed = true]]-- | |
1156 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) | |
1157 | wait(1) | |
1158 | --Debounces.Slashed = false | |
1159 | end | |
1160 | end | |
1161 | end | |
1162 | end) | |
1163 | for i = 1, 20 do | |
1164 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(21), math.rad(75), math.rad(50)), 0.2) | |
1165 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-18)), 0.2) | |
1166 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(-60),0), 0.5) | |
1167 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(70), 0), 0.5) | |
1168 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5) | |
1169 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5) | |
1170 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
1171 | if Debounces.on == false then break end | |
1172 | wait() | |
1173 | end | |
1174 | z = Instance.new("Sound",hed) | |
1175 | z.SoundId = "rbxassetid://160069154" | |
1176 | z.Looped = false | |
1177 | z.Pitch = .9 | |
1178 | z1 = Instance.new("Sound",hed) | |
1179 | z1.SoundId = "rbxassetid://160069154" | |
1180 | z1.Looped = false | |
1181 | z1.Pitch = .9 | |
1182 | wait(0.01) | |
1183 | z:Play() | |
1184 | z1:Play() | |
1185 | for i = 1, 12 do | |
1186 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), 0.2) | |
1187 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2,.9,-1) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(20)), 0.5) | |
1188 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(30),0), 0.5) | |
1189 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5) | |
1190 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10), 0, 0), 0.5) | |
1191 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.8, .6) * CFrame.Angles(math.rad(-65), 0, 0), 0.5) | |
1192 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
1193 | if Debounces.on == false then break end | |
1194 | wait() | |
1195 | end | |
1196 | for i = 1, 12 do | |
1197 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(50)), 0.4) | |
1198 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-18)), 0.4) | |
1199 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(10),0), 0.5) | |
1200 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-10), 0), 0.5) | |
1201 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5) | |
1202 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5) | |
1203 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
1204 | if Debounces.on == false then break end | |
1205 | wait() | |
1206 | end | |
1207 | z = Instance.new("Sound",hed) | |
1208 | z.SoundId = "rbxassetid://168586621" | |
1209 | z.Looped = false | |
1210 | z.Pitch = 1 | |
1211 | z1 = Instance.new("Sound",hed) | |
1212 | z1.SoundId = "rbxassetid://168586621" | |
1213 | z1.Looped = false | |
1214 | z1.Pitch = 1 | |
1215 | wait(0.01) | |
1216 | z:Play() | |
1217 | z1:Play() | |
1218 | for i = 1, 12 do | |
1219 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(40), math.rad(-20), math.rad(10)), 0.5) | |
1220 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-18)), 0.4) | |
1221 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(-40),0), 0.5) | |
1222 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(40), 0), 0.5) | |
1223 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-10)), 0.5) | |
1224 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(20), 0, math.rad(10)), 0.5) | |
1225 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(-110), math.rad(-90), math.rad(20)), 1) | |
1226 | if Debounces.on == false then break end | |
1227 | wait() | |
1228 | end | |
1229 | to:disconnect() | |
1230 | if Debounces.CanAttack == false then | |
1231 | Debounces.CanAttack = true | |
1232 | Debounces.on = false | |
1233 | Debounces.NoIdl = false | |
1234 | end | |
1235 | end | |
1236 | end | |
1237 | end) | |
1238 | ---------------------------------------------------- | |
1239 | Sit = false | |
1240 | mouse.KeyDown:connect(function(key) | |
1241 | if key == "v" then | |
1242 | if Sit == false then | |
1243 | Sit = true | |
1244 | hum.WalkSpeed = 0 | |
1245 | stanceToggle = "Sitting" | |
1246 | elseif Sit == true then | |
1247 | Sit = false | |
1248 | hum.WalkSpeed = 10 | |
1249 | stanceToggle = "Normal" | |
1250 | end | |
1251 | end | |
1252 | end) | |
1253 | ---------------------------------------------------- | |
1254 | mouse.KeyDown:connect(function(key) | |
1255 | if key == "t" then | |
1256 | if Debounces.CanAttack == true then | |
1257 | Debounces.CanAttack = false | |
1258 | Debounces.on = true | |
1259 | Debounces.NoIdl = true | |
1260 | for i = 1, 20 do | |
1261 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.4) | |
1262 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.4) | |
1263 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.4) | |
1264 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.4) | |
1265 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .6) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.4) | |
1266 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.2) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.4) | |
1267 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -2.5, -1) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1) | |
1268 | if Debounces.on == false then break end | |
1269 | wait() | |
1270 | end | |
1271 | Spawn(function() | |
1272 | local Parts = {} | |
1273 | for Y = -5,5 do | |
1274 | local P = Instance.new("Part",char) | |
1275 | P.Anchored = true | |
1276 | P.FormFactor = "Custom" | |
1277 | P.CanCollide = false | |
1278 | P.Size = Vector3.new(2,2,1) | |
1279 | P.TopSurface = "SmoothNoOutlines" | |
1280 | P.BottomSurface = "SmoothNoOutlines" | |
1281 | P.BrickColor = BrickColor.new("Really black") | |
1282 | P.Name = tostring(Y) | |
1283 | local i = (Y+5)/(10) | |
1284 | i = 1-math.cos(math.pi*i-(math.pi/2)) | |
1285 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-5+(i*5.5))*CFrame.Angles(math.rad(Y*5),0,0) | |
1286 | --[[P.Touched:connect(function(ht) | |
1287 | local hit = ht.Parent | |
1288 | if hit:FindFirstChild("Humanoid") then | |
1289 | hit.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1290 | end | |
1291 | end)]]-- | |
1292 | s = Instance.new("Sound",P) | |
1293 | s.SoundId = "rbxassetid://228343271" | |
1294 | s.Volume = .7 | |
1295 | s.Pitch = 0.9 | |
1296 | s:Play() | |
1297 | P.Touched:connect(function(ht) | |
1298 | hit = ht.Parent | |
1299 | if ht and hit:IsA("Model") then | |
1300 | if hit:FindFirstChild("Humanoid") then | |
1301 | if hit.Name ~= p.Name then | |
1302 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1303 | Debounces.Slashed = true]]-- | |
1304 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(10000020,10000030)) | |
1305 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1306 | wait(1) | |
1307 | --Debounces.Slashed = false | |
1308 | --end | |
1309 | end | |
1310 | end | |
1311 | elseif ht and hit:IsA("Hat") then | |
1312 | if hit.Parent.Name ~= p.Name then | |
1313 | if hit.Parent:FindFirstChild("Humanoid") then | |
1314 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1315 | Debounces.Slashed = true]]-- | |
1316 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (10000020,10000030)) | |
1317 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1318 | wait(1) | |
1319 | --Debounces.Slashed = false | |
1320 | --end | |
1321 | end | |
1322 | end | |
1323 | end | |
1324 | end) | |
1325 | Parts[#Parts+1] = P | |
1326 | end | |
1327 | local BREAKIT = false | |
1328 | local CParts = {} | |
1329 | local Rocks = {} | |
1330 | local LastPos = nil | |
1331 | for i = 1,70 do | |
1332 | for i2,v in pairs(Parts) do | |
1333 | v.CFrame = v.CFrame*CFrame.new(0,0,-4) | |
1334 | local cf = v.CFrame | |
1335 | v.Size = v.Size+Vector3.new(0.4,0.35,0) | |
1336 | v.CFrame = cf | |
1337 | v.Transparency = v.Transparency+0.02 | |
1338 | if v.Transparency >= 0.975 then BREAKIT = true end | |
1339 | if v.Name == "0" then | |
1340 | local Ignore = {} | |
1341 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
1342 | if v.Character ~= nil then | |
1343 | Ignore[#Ignore+1] = v.Character | |
1344 | end | |
1345 | end | |
1346 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-100,0)) | |
1347 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
1348 | if Hit ~= nil then | |
1349 | if #Rocks == 0 then | |
1350 | for i = 1,5 do | |
1351 | local P = Instance.new("Part",char) | |
1352 | Rocks[#Rocks+1] = P | |
1353 | P.Anchored = true | |
1354 | P.FormFactor = "Custom" | |
1355 | P.BrickColor = Hit.BrickColor | |
1356 | P.Material = Hit.Material | |
1357 | P.TopSurface = "Smooth" | |
1358 | P.BottomSurface = "Smooth" | |
1359 | P.Size = Vector3.new(1,1,1)*(math.random(500,900)/100) | |
1360 | end | |
1361 | end | |
1362 | for i,P in pairs(Rocks) do | |
1363 | P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
1364 | end | |
1365 | local P = Instance.new("Part",char) | |
1366 | CParts[#CParts+1] = {P,tick()} | |
1367 | P.Anchored = true | |
1368 | P.FormFactor = "Custom" | |
1369 | P.BrickColor = BrickColor.new("Navy blue") | |
1370 | P.Material = ("Neon") | |
1371 | P.TopSurface = "Smooth" | |
1372 | P.BottomSurface = "Smooth" | |
1373 | P.Size = Vector3.new(1,1,1)*(math.random(100,300)/100) | |
1374 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
1375 | Pos = Pos.p | |
1376 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
1377 | local P = P:Clone() | |
1378 | CParts[#CParts+1] = {P,tick()} | |
1379 | P.Parent = char | |
1380 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
1381 | Pos = Pos.p | |
1382 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) | |
1383 | if LastPos ~= nil then | |
1384 | local P = P:Clone() | |
1385 | CParts[#CParts+1] = {P,tick()} | |
1386 | P.Parent = char | |
1387 | P.BrickColor = BrickColor.new("Navy blue") | |
1388 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
1389 | Pos = Pos.p | |
1390 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
1391 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
1392 | --P.Velocity = Vector3.new(0,-1000,0) | |
1393 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
1394 | end | |
1395 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
1396 | end | |
1397 | end | |
1398 | end | |
1399 | if BREAKIT then break end | |
1400 | wait(0.002) | |
1401 | end | |
1402 | for i,v in pairs(Rocks) do | |
1403 | CParts[#CParts+1] = {v,tick()} | |
1404 | end | |
1405 | for i,v in pairs(Parts) do | |
1406 | v:Destroy() | |
1407 | end | |
1408 | Parts = nil | |
1409 | while true do | |
1410 | local t = tick() | |
1411 | local p = nil | |
1412 | for i,v in pairs(CParts) do | |
1413 | if t-v[2] > 4 then | |
1414 | v[1].Transparency = v[1].Transparency+0.05 | |
1415 | if v[1].Transparency >= 1 then | |
1416 | v[1]:Destroy() | |
1417 | CParts[i] = nil | |
1418 | end | |
1419 | end | |
1420 | p = v | |
1421 | end | |
1422 | if p == nil then break end | |
1423 | wait(0.002) | |
1424 | end | |
1425 | for i,v in pairs(CParts) do | |
1426 | v:Destroy() | |
1427 | end | |
1428 | CParts = {} | |
1429 | end) | |
1430 | for i = 1, 20 do | |
1431 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.4) | |
1432 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.4) | |
1433 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),0.4) | |
1434 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.6, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.4) | |
1435 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -1.4) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.4) | |
1436 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1.6, -.9) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.4) | |
1437 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1) | |
1438 | if Debounces.on == false then break end | |
1439 | wait() | |
1440 | end | |
1441 | if Debounces.CanAttack == false then | |
1442 | Debounces.CanAttack = true | |
1443 | Debounces.on = false | |
1444 | Debounces.NoIdl = false | |
1445 | end | |
1446 | end | |
1447 | end | |
1448 | end) | |
1449 | ---------------------------------------------------- | |
1450 | mouse.KeyDown:connect(function(key) | |
1451 | if key == "e" then | |
1452 | if Debounces.CanAttack == true then | |
1453 | Debounces.CanAttack = false | |
1454 | Debounces.on = true | |
1455 | Debounces.NoIdl = true | |
1456 | for i = 1, 18 do | |
1457 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1.7, 0) * CFrame.Angles(math.rad(90),math.rad(50),math.rad(90)), 0.4) | |
1458 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.4) | |
1459 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
1460 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.4) | |
1461 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.4) | |
1462 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
1463 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
1464 | if Debounces.on == false then break end | |
1465 | wait() | |
1466 | end | |
1467 | local HandCF = CFrame.new(char.Titanius.Handle.Position - Vector3.new(0,8.8,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1468 | local rng = Instance.new("Part", char.Titanius.Handle) | |
1469 | rng.Anchored = true | |
1470 | rng.BrickColor = BrickColor.new("Really black") | |
1471 | rng.CanCollide = true | |
1472 | rng.FormFactor = 3 | |
1473 | rng.Name = "Ring" | |
1474 | rng.Size = Vector3.new(1, 1, 1) | |
1475 | rng.CanCollide = false | |
1476 | rng.Transparency = 0.35 | |
1477 | rng.TopSurface = 0 | |
1478 | rng.BottomSurface = 0 | |
1479 | rng.CFrame = HandCF | |
1480 | local rngm = Instance.new("SpecialMesh", rng) | |
1481 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1482 | rngm.Scale = Vector3.new(1, 1, 2) | |
1483 | x = Instance.new("Sound", hed) | |
1484 | x.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
1485 | x.Looped = false | |
1486 | x.Pitch = .7 | |
1487 | x.Volume = 1 | |
1488 | x1 = Instance.new("Sound", hed) | |
1489 | x1.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
1490 | x1.Looped = false | |
1491 | x1.Pitch = .7 | |
1492 | x1.Volume = 1 | |
1493 | x:Play() | |
1494 | x1:Play() | |
1495 | rngto = rng.Touched:connect(function(ht) | |
1496 | hit = ht.Parent | |
1497 | if ht and hit:IsA("Model") then | |
1498 | if hit:FindFirstChild("Humanoid") then | |
1499 | if hit.Name ~= p.Name then | |
1500 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1501 | Debounces.Slashed = true]]-- | |
1502 | hit:FindFirstChild("Humanoid"):TakeDamage(1000000) | |
1503 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1504 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -120 | |
1505 | --Debounces.Slashed = false | |
1506 | --end | |
1507 | end | |
1508 | end | |
1509 | elseif ht and hit:IsA("Hat") then | |
1510 | if hit.Parent.Name ~= p.Name then | |
1511 | if hit.Parent:FindFirstChild("Humanoid") then | |
1512 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
1513 | Debounces.Slashed = true]]-- | |
1514 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(100000) | |
1515 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1516 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -120 | |
1517 | --Debounces.Slashed = false | |
1518 | end | |
1519 | end | |
1520 | end | |
1521 | end) | |
1522 | coroutine.wrap(function() | |
1523 | for i = 1, 60, 2 do | |
1524 | rngm.Scale = Vector3.new(2 + i*4, 2 + i*4, 1) | |
1525 | rng.Size = rngm.Scale | |
1526 | rng.CFrame = HandCF | |
1527 | rng.Transparency = i/60 | |
1528 | wait() | |
1529 | end | |
1530 | wait() | |
1531 | rng:Destroy() | |
1532 | end)() | |
1533 | for i = 1, 18 do | |
1534 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.4) | |
1535 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.4) | |
1536 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
1537 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.4) | |
1538 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.4) | |
1539 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
1540 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, 0.2) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
1541 | if Debounces.on == false then break end | |
1542 | wait() | |
1543 | end | |
1544 | larm.BrickColor = BrickColor.new("Really black") | |
1545 | rarm.BrickColor = BrickColor.new("Really black") | |
1546 | x:Destroy() | |
1547 | x1:Destroy() | |
1548 | if Debounces.CanAttack == false then | |
1549 | Debounces.CanAttack = true | |
1550 | Debounces.on = false | |
1551 | Debounces.NoIdl = false | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | end) | |
1556 | ---------------------------------------------------- | |
1557 | mouse.KeyDown:connect(function(key) | |
1558 | if key == "y" then | |
1559 | if Debounces.CanAttack == true then | |
1560 | Debounces.CanAttack = false | |
1561 | Debounces.on = true | |
1562 | Debounces.NoIdl = true | |
1563 | for i = 1, 15 do | |
1564 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2) | |
1565 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.2) | |
1566 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
1567 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.2) | |
1568 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
1569 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
1570 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
1571 | if Debounces.on == false then break end | |
1572 | wait() | |
1573 | end | |
1574 | x = Instance.new("Sound",char) | |
1575 | x.SoundId = "rbxassetid://228343271" | |
1576 | x.Pitch = 1 | |
1577 | x.Volume = .8 | |
1578 | wait(.1) | |
1579 | x:Play() | |
1580 | Debounces.on = false | |
1581 | Debounces.Here = false | |
1582 | shot = shot + 1 | |
1583 | local rng = Instance.new("Part", char) | |
1584 | rng.Anchored = true | |
1585 | rng.BrickColor = BrickColor.new("Really black") | |
1586 | rng.CanCollide = false | |
1587 | rng.FormFactor = 3 | |
1588 | rng.Name = "Ring" | |
1589 | rng.Size = Vector3.new(1, 1, 1) | |
1590 | rng.Transparency = 0.35 | |
1591 | rng.TopSurface = 0 | |
1592 | rng.BottomSurface = 0 | |
1593 | rng2 = rng:clone() | |
1594 | rng3 = rng2:clone() | |
1595 | rng4 = rng2:clone() | |
1596 | local rngm = Instance.new("SpecialMesh", rng) | |
1597 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1598 | rngm.Scale = Vector3.new(10, 10, 1) | |
1599 | rngm2 = rngm:clone() | |
1600 | rngm2.Scale = Vector3.new(5, 5, 1) | |
1601 | rngm3=rngm2:clone() | |
1602 | rngm3.Parent = rng3 | |
1603 | rngm3.Scale = Vector3.new(8, 8, 1) | |
1604 | rngm4 = rngm2:clone() | |
1605 | rngm4.Parent = rng4 | |
1606 | rngm4.Scale = Vector3.new(6, 6, 1) | |
1607 | local bem = Instance.new("Part", char) | |
1608 | bem.Anchored = true | |
1609 | bem.BrickColor = BrickColor.new("Navy blue") | |
1610 | bem.CanCollide = false | |
1611 | bem.FormFactor = 3 | |
1612 | bem.Name = "Beam" .. shot | |
1613 | bem.Size = Vector3.new(1, 1, 1) | |
1614 | bem.Transparency = 0.35 | |
1615 | bem.TopSurface = 0 | |
1616 | bem.BottomSurface = 0 | |
1617 | local bemm = Instance.new("SpecialMesh", bem) | |
1618 | bemm.MeshType = 4 | |
1619 | bemm.Scale = Vector3.new(1, 4, 4) | |
1620 | local out = Instance.new("Part", char) | |
1621 | out.Anchored = true | |
1622 | out.BrickColor = BrickColor.new("Navy blue") | |
1623 | out.CanCollide = false | |
1624 | out.FormFactor = 3 | |
1625 | out.Name = "Out" | |
1626 | out.Size = Vector3.new(4, 4, 4) | |
1627 | out.Transparency = 0.35 | |
1628 | out.TopSurface = 0 | |
1629 | out.BottomSurface = 0 | |
1630 | local outm = Instance.new("SpecialMesh", out) | |
1631 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
1632 | outm.Scale = Vector3.new(4, 4, 4) | |
1633 | local bnd = Instance.new("Part", char) | |
1634 | bnd.Anchored = true | |
1635 | bnd.BrickColor = BrickColor.new("Navy blue") | |
1636 | bnd.CanCollide = false | |
1637 | bnd.FormFactor = 3 | |
1638 | bnd.Name = "Bend" | |
1639 | bnd.Size = Vector3.new(1, 1, 1) | |
1640 | bnd.Transparency = 1 | |
1641 | bnd.TopSurface = 0 | |
1642 | bnd.BottomSurface = 0 | |
1643 | local bndm = Instance.new("SpecialMesh", bnd) | |
1644 | bndm.MeshType = 3 | |
1645 | bndm.Scale = Vector3.new(8, 8, 8) | |
1646 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
1647 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
1648 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
1649 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1650 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
1651 | rng4.CFrame = rng3.CFrame * CFrame.new(0, -.5, 0) | |
1652 | Debounces.Shewt = true | |
1653 | coroutine.wrap(function() | |
1654 | for i = 1, 20, 0.2 do | |
1655 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
1656 | rngm3.Scale = Vector3.new(8 + i*2, 8 + i*2, 1) | |
1657 | rngm4.Scale = Vector3.new(6 + i*2, 6 + i*2, 1) | |
1658 | rng.Transparency = i/20 | |
1659 | rng3.Transparency = 1/16 | |
1660 | rng4.Transparency = i/12 | |
1661 | wait() | |
1662 | end | |
1663 | wait() | |
1664 | rng:Destroy() | |
1665 | end)() | |
1666 | if Debounces.Shewt == true then | |
1667 | char:WaitForChild("Beam" .. shot).Touched:connect(function(ht) | |
1668 | hit = ht.Parent | |
1669 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
1670 | if HasntTouched(hit.Name) == true and deb == false then | |
1671 | deb = true | |
1672 | coroutine.wrap(function() | |
1673 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1674 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
1675 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(10000020,10000030)) | |
1676 | end)() | |
1677 | table.insert(Touche, hit.Name) | |
1678 | deb = false | |
1679 | end | |
1680 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
1681 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
1682 | deb = true | |
1683 | coroutine.wrap(function() | |
1684 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
1685 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
1686 | wait(1) | |
1687 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
1688 | end)() | |
1689 | table.insert(Touche, hit.Parent.Name) | |
1690 | deb = false | |
1691 | for i, v in pairs(Touche) do | |
1692 | print(v) | |
1693 | end | |
1694 | end | |
1695 | end | |
1696 | end) | |
1697 | end | |
1698 | for i = 0, 260, 8 do | |
1699 | bem.Size = Vector3.new(i, 2, 2) | |
1700 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
1701 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
1702 | bnd.Size = Vector3.new(1,1,1) | |
1703 | bndm.Scale = Vector3.new(8,8,8) | |
1704 | if i % 10 == 0 then | |
1705 | local newRng = rng2:Clone() | |
1706 | newRng.Parent = char | |
1707 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
1708 | local newRngm = rngm2:clone() | |
1709 | newRngm.Parent=newRng | |
1710 | coroutine.wrap(function() | |
1711 | for i = 1, 10, 0.2 do | |
1712 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 1) | |
1713 | newRng.Transparency = i/10 | |
1714 | wait() | |
1715 | end | |
1716 | wait() | |
1717 | newRng:Destroy() | |
1718 | end)() | |
1719 | end | |
1720 | wait() | |
1721 | end | |
1722 | wait() | |
1723 | Debounces.Shewt = false | |
1724 | bem:Destroy() | |
1725 | out:Destroy() | |
1726 | bnd:Destroy() | |
1727 | Debounces.Ready = false | |
1728 | for i, v in pairs(Touche) do | |
1729 | table.remove(Touche, i) | |
1730 | end | |
1731 | wait() | |
1732 | table.insert(Touche, char.Name) | |
1733 | Debounces.NoIdl = false | |
1734 | if Debounces.CanAttack == false then | |
1735 | Debounces.CanAttack = true | |
1736 | end | |
1737 | end | |
1738 | end | |
1739 | end) | |
1740 | ---------------------------------------------------- | |
1741 | sidz = {"231917888", "231917845", "231917806"} | |
1742 | ptz = {0.65, 0.7, 0.75, 0.8, 0.95, 1} | |
1743 | mouse.KeyDown:connect(function(key) | |
1744 | if key == "f" then | |
1745 | if Debounces.CanAttack == true then | |
1746 | Debounces.CanAttack = false | |
1747 | Debounces.on = true | |
1748 | Debounces.NoIdl = true | |
1749 | for i = 1, 10 do | |
1750 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.4) | |
1751 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.4) | |
1752 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4) | |
1753 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4) | |
1754 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1755 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1756 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
1757 | if Debounces.on == false then break end | |
1758 | wait() | |
1759 | end | |
1760 | z = Instance.new("Sound",char) | |
1761 | z.SoundId = "rbxassetid://"..sidz[math.random(1,#sidz)] | |
1762 | z.Pitch = ptz[math.random(1,#ptz)] | |
1763 | z.Volume = 1 | |
1764 | z1 = Instance.new("Sound",char) | |
1765 | z1.SoundId = z.SoundId | |
1766 | z1.Pitch = z.Pitch | |
1767 | z1.Volume = 1 | |
1768 | wait(1) | |
1769 | z:Play() | |
1770 | z1:Play() | |
1771 | Stomp() | |
1772 | for i = 1, 20 do | |
1773 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.6) | |
1774 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.6) | |
1775 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.2)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6) | |
1776 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, -.6) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.6) | |
1777 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(30), 0, math.rad(0)), 0.6) | |
1778 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.8, -1.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), 0.6) | |
1779 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
1780 | if Debounces.on == false then break end | |
1781 | wait() | |
1782 | end | |
1783 | if Debounces.CanAttack == false then | |
1784 | Debounces.CanAttack = true | |
1785 | Debounces.on = false | |
1786 | Debounces.NoIdl = false | |
1787 | end | |
1788 | end | |
1789 | end | |
1790 | end) | |
1791 | ---------------------------------------------------- | |
1792 | mouse.KeyDown:connect(function(key) | |
1793 | if key == "g" then | |
1794 | if Debounces.CanAttack == true then | |
1795 | Debounces.CanAttack = false | |
1796 | Debounces.on = true | |
1797 | Debounces.NoIdl = true | |
1798 | chrg = lleg.Touched:connect(function(ht) | |
1799 | hit = ht.Parent | |
1800 | if ht and hit:IsA("Model") then | |
1801 | if hit:FindFirstChild("Humanoid") then | |
1802 | if hit.Name ~= p.Name then | |
1803 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1804 | Debounces.Slashed = true]]-- | |
1805 | hit:FindFirstChild("Humanoid"):TakeDamage(29999999) | |
1806 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1807 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
1808 | --Debounces.Slashed = false | |
1809 | --end | |
1810 | end | |
1811 | end | |
1812 | elseif ht and hit:IsA("Hat") then | |
1813 | if hit.Parent.Name ~= p.Name then | |
1814 | if hit.Parent:FindFirstChild("Humanoid") then | |
1815 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
1816 | Debounces.Slashed = true]]-- | |
1817 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2999999999) | |
1818 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1819 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
1820 | --Debounces.Slashed = false | |
1821 | end | |
1822 | end | |
1823 | end | |
1824 | end) | |
1825 | for i = 1, 14 do | |
1826 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.5) | |
1827 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.5) | |
1828 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.2)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), 0.5) | |
1829 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5) | |
1830 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.8, -3, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5) | |
1831 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5) | |
1832 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.9) | |
1833 | if Debounces.on == false then break end | |
1834 | wait() | |
1835 | end | |
1836 | charge() | |
1837 | z = Instance.new("Sound",char) | |
1838 | z.SoundId = "rbxassetid://100632875" | |
1839 | z.Volume = 1 | |
1840 | z.Pitch = .8 | |
1841 | z1 = Instance.new("Sound",char) | |
1842 | z1.SoundId = "rbxassetid://100632875" | |
1843 | z1.Volume = 1 | |
1844 | z1.Pitch = .9 | |
1845 | z:Play() | |
1846 | z1:Play() | |
1847 | wait(1) | |
1848 | z:Destroy() | |
1849 | z1:Destroy() | |
1850 | chrg:disconnect() | |
1851 | if Debounces.CanAttack == false then | |
1852 | Debounces.CanAttack = true | |
1853 | Debounces.on = false | |
1854 | Debounces.NoIdl = false | |
1855 | end | |
1856 | end | |
1857 | end | |
1858 | end) | |
1859 | ---------------------------------------------------- | |
1860 | pt = {0.7, 0.8, 0.9} | |
1861 | mouse.KeyDown:connect(function(key) | |
1862 | if key == "h" then | |
1863 | if Debounces.CanJoke == true then | |
1864 | Debounces.CanJoke = false | |
1865 | u = Instance.new("Sound") | |
1866 | u.SoundId = "http://www.roblox.com/asset/?id=333446256" | |
1867 | u.Parent = char | |
1868 | u.Looped = false | |
1869 | u.Pitch = pt[math.random(1,#pt)] | |
1870 | u.Volume = 1 | |
1871 | u2 = Instance.new("Sound") | |
1872 | u2.SoundId = "http://www.roblox.com/asset/?id=333446256" | |
1873 | u2.Parent = char | |
1874 | u2.Looped = false | |
1875 | u2.Pitch = u.Pitch | |
1876 | u2.Volume = 1 | |
1877 | wait(.01) | |
1878 | u:Play() | |
1879 | u2:Play() | |
1880 | wait(6) | |
1881 | u:Destroy() | |
1882 | u2:Destroy() | |
1883 | if Debounces.CanJoke == false then | |
1884 | Debounces.CanJoke = true | |
1885 | end | |
1886 | end | |
1887 | end | |
1888 | end) | |
1889 | ---------------------------------------------------- | |
1890 | --Insert awesome nuke cmd here-- | |
1891 | ||
1892 | ---------------------------------------------------- | |
1893 | mouse.KeyDown:connect(function(key) | |
1894 | if key == "l" then | |
1895 | if Debounces.CanJoke == true then | |
1896 | Debounces.CanJoke = false | |
1897 | z = Instance.new("Sound",char) | |
1898 | z.SoundId = "rbxassetid://233774928" | |
1899 | z.Pitch = .76 | |
1900 | z.Volume = 1 | |
1901 | wait() | |
1902 | z:Play() | |
1903 | wait(6) | |
1904 | z:Destroy() | |
1905 | if Debounces.CanJoke == false then | |
1906 | Debounces.CanJoke = true | |
1907 | end | |
1908 | end | |
1909 | end | |
1910 | end) | |
1911 | ---------------------------------------------------- | |
1912 | mouse.KeyDown:connect(function(key) | |
1913 | if key == "j" then | |
1914 | if Debounces.CanJoke == true then | |
1915 | Debounces.CanJoke = false | |
1916 | z = Instance.new("Sound",char) | |
1917 | z.SoundId = "rbxassetid://135017456" | |
1918 | z.Pitch = .76 | |
1919 | z.Volume = 1 | |
1920 | wait() | |
1921 | z:Play() | |
1922 | wait(6) | |
1923 | z:Destroy() | |
1924 | if Debounces.CanJoke == false then | |
1925 | Debounces.CanJoke = true | |
1926 | end | |
1927 | end | |
1928 | end | |
1929 | end) | |
1930 | ---------------------------------------------------- | |
1931 | mouse.KeyDown:connect(function(key) | |
1932 | if key == "k" then | |
1933 | if Debounces.CanJoke == true then | |
1934 | Debounces.CanJoke = false | |
1935 | z = Instance.new("Sound",char) | |
1936 | z.SoundId = "rbxassetid://135017578" | |
1937 | z.Pitch = .76 | |
1938 | z.Volume = 1 | |
1939 | wait() | |
1940 | z:Play() | |
1941 | wait(4) | |
1942 | z:Destroy() | |
1943 | if Debounces.CanJoke == false then | |
1944 | Debounces.CanJoke = true | |
1945 | end | |
1946 | end | |
1947 | end | |
1948 | end) | |
1949 | ---------------------------------------------------- | |
1950 | mouse.KeyDown:connect(function(key) | |
1951 | if key == "x" then | |
1952 | if Debounces.CanAttack == true then | |
1953 | Debounces.CanAttack = false | |
1954 | Debounces.NoIdl = true | |
1955 | Debounces.on = true | |
1956 | Debounces.ks = true | |
1957 | for i = 1, 10 do | |
1958 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6) | |
1959 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.7,.9,-.5)*CFrame.Angles(math.rad(40),math.rad(0),math.rad(20)), 0.6) | |
1960 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6) | |
1961 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.6) | |
1962 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.6) | |
1963 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.7, .6) * CFrame.Angles(math.rad(-70), math.rad(0), math.rad(0)), 0.6) | |
1964 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
1965 | if Debounces.on == false then break end | |
1966 | wait() | |
1967 | end | |
1968 | z = Instance.new("Sound",hed) | |
1969 | z.SoundId = "rbxassetid://169445092" | |
1970 | z.Volume = 1 | |
1971 | wait(0.1) | |
1972 | z:Play() | |
1973 | kik = rleg.Touched:connect(function(ht) | |
1974 | hit = ht.Parent | |
1975 | if ht and hit:IsA("Model") then | |
1976 | if hit:FindFirstChild("Humanoid") then | |
1977 | if hit.Name ~= p.Name then | |
1978 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1979 | Debounces.Slashed = true]]-- | |
1980 | if Debounces.ks==true then | |
1981 | z = Instance.new("Sound",hed) | |
1982 | z.SoundId = "rbxassetid://169380525" | |
1983 | z.Volume = 1 | |
1984 | z:Play() | |
1985 | Debounces.ks=false | |
1986 | end | |
1987 | hit:FindFirstChild("Humanoid"):TakeDamage(29999999) | |
1988 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1989 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
1990 | --Debounces.Slashed = false | |
1991 | --end | |
1992 | end | |
1993 | end | |
1994 | elseif ht and hit:IsA("Hat") then | |
1995 | if hit.Parent.Name ~= p.Name then | |
1996 | if hit.Parent:FindFirstChild("Humanoid") then | |
1997 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1998 | Debounces.Slashed = true]]-- | |
1999 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2999999) | |
2000 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2001 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
2002 | --Debounces.Slashed = false | |
2003 | --end | |
2004 | end | |
2005 | end | |
2006 | end | |
2007 | end) | |
2008 | for i = 1, 8 do | |
2009 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2010 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.7) | |
2011 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,.2)*CFrame.Angles(math.rad(8),math.rad(0),0), 0.7) | |
2012 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(16), math.rad(0), 0), 0.7) | |
2013 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
2014 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.6, -1.4) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.7) | |
2015 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2016 | if Debounces.on == false then break end | |
2017 | wait() | |
2018 | end | |
2019 | kik:disconnect() | |
2020 | if Debounces.CanAttack == false then | |
2021 | Debounces.CanAttack = true | |
2022 | Debounces.on = false | |
2023 | Debounces.NoIdl = false | |
2024 | end | |
2025 | end | |
2026 | end | |
2027 | end) | |
2028 | ---------------------------------------------------- | |
2029 | mouse.KeyDown:connect(function(key) | |
2030 | if key == "c" then | |
2031 | if Debounces.CanAttack == true then | |
2032 | Debounces.CanAttack = false | |
2033 | Debounces.NoIdl = true | |
2034 | Debounces.on = true | |
2035 | SIDZ = {"231917744", "231917742"} | |
2036 | PTZ = {0.7, 0.8, 0.9, 1} | |
2037 | for i = 1, 20 do | |
2038 | wait() | |
2039 | for i,v in pairs(char.Titanius:children()) do | |
2040 | if v:IsA("Part") or v:IsA("WedgePart") then | |
2041 | v.Transparency = v.Transparency + 0.05 | |
2042 | end | |
2043 | end | |
2044 | end | |
2045 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
2046 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
2047 | local List = {} | |
2048 | for i,v in pairs(workspace:GetChildren())do | |
2049 | if v:IsA("Model")then | |
2050 | if v:findFirstChild("Torso")then | |
2051 | if v ~= char then | |
2052 | if(v.Torso.Position -Position).magnitude <= Distance then | |
2053 | table.insert(List,v) | |
2054 | end | |
2055 | end | |
2056 | end | |
2057 | end | |
2058 | end | |
2059 | return List | |
2060 | end | |
2061 | GroundPound() | |
2062 | for i = 1, 5 do | |
2063 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2064 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2065 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2066 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2067 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2068 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2069 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2070 | if Debounces.on == false then break end | |
2071 | wait() | |
2072 | end | |
2073 | GroundPound() | |
2074 | for i = 1, 5 do | |
2075 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2076 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2077 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2078 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2079 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2080 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2081 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2082 | if Debounces.on == false then break end | |
2083 | wait() | |
2084 | end | |
2085 | GroundPound() | |
2086 | for i = 1, 5 do | |
2087 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2088 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2089 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2090 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2091 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2092 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2093 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2094 | if Debounces.on == false then break end | |
2095 | wait() | |
2096 | end | |
2097 | GroundPound() | |
2098 | for i = 1, 5 do | |
2099 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2100 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2101 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2102 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2103 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2104 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2105 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2106 | if Debounces.on == false then break end | |
2107 | wait() | |
2108 | end | |
2109 | GroundPound() | |
2110 | for i = 1, 5 do | |
2111 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2112 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2113 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2114 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2115 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2116 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2117 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2118 | if Debounces.on == false then break end | |
2119 | wait() | |
2120 | end | |
2121 | GroundPound() | |
2122 | for i = 1, 5 do | |
2123 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2124 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2125 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2126 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2127 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2128 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2129 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2130 | if Debounces.on == false then break end | |
2131 | wait() | |
2132 | end | |
2133 | for i = 1, 18 do | |
2134 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-10)), 0.4) | |
2135 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(10)), 0.4) | |
2136 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4) | |
2137 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4) | |
2138 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
2139 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
2140 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2141 | if Debounces.on == false then break end | |
2142 | wait() | |
2143 | end | |
2144 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do | |
2145 | if v:FindFirstChild('Humanoid') then | |
2146 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
2147 | v.Humanoid.PlatformStand = true | |
2148 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
2149 | end | |
2150 | end | |
2151 | x = Instance.new("Sound",char) | |
2152 | x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)] | |
2153 | x.Pitch = PTZ[math.random(1,#PTZ)] | |
2154 | x.Volume = 1 | |
2155 | wait(0.1) | |
2156 | x:Play() | |
2157 | Crater(hed,20) | |
2158 | for i = 1, 14 do | |
2159 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(-10)), 0.6) | |
2160 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), 0.6) | |
2161 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.6) | |
2162 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(-90), math.rad(0), 0), 0.6) | |
2163 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
2164 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
2165 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2166 | if Debounces.on == false then break end | |
2167 | wait() | |
2168 | end | |
2169 | if Debounces.CanAttack == false then | |
2170 | Debounces.CanAttack = true | |
2171 | Debounces.on = false | |
2172 | Debounces.NoIdl = false | |
2173 | for i = 1, 20 do | |
2174 | wait() | |
2175 | for i,v in pairs(char.Titanius:children()) do | |
2176 | if v:IsA("Part") or v:IsA("WedgePart") then | |
2177 | v.Transparency = v.Transparency - 0.05 | |
2178 | end | |
2179 | end | |
2180 | end | |
2181 | end | |
2182 | end | |
2183 | end | |
2184 | end) | |
2185 | ----------------------------------------------------176349813 | |
2186 | mouse.KeyDown:connect(function(key) | |
2187 | if key == "b" then | |
2188 | hum.WalkSpeed = 0 | |
2189 | if Debounces.CanAttack == true then | |
2190 | Debounces.CanAttack = false | |
2191 | Debounces.NoIdl = true | |
2192 | Debounces.on = true | |
2193 | for i = 1,20 do | |
2194 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.1) | |
2195 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.1) | |
2196 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.1) | |
2197 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.1) | |
2198 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles (math.rad(30), 0, math.rad(-5)), 0.1) | |
2199 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles (math.rad(30), 0, math.rad(5)), 0.1) | |
2200 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2201 | if Debounces.on == false then break end | |
2202 | wait() | |
2203 | end | |
2204 | wait(1) | |
2205 | v = Instance.new("Sound") | |
2206 | v.SoundId = "rbxassetid://199978176" | |
2207 | v.Parent = char | |
2208 | v.Looped = false | |
2209 | v.Pitch = 1 | |
2210 | v.Volume = 3 | |
2211 | wait(.01) | |
2212 | v:Play() | |
2213 | ||
2214 | if Daytime == true then | |
2215 | Daytime = false | |
2216 | l.TimeOfDay = 24 | |
2217 | else | |
2218 | Daytime = true | |
2219 | l.TimeOfDay = 12 | |
2220 | l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) | |
2221 | end | |
2222 | ||
2223 | local Shockwave = function() | |
2224 | local rng1 = Instance.new("Part", char) | |
2225 | rng1.Anchored = true | |
2226 | rng1.BrickColor = BrickColor.new("Really black") | |
2227 | rng1.CanCollide = false | |
2228 | rng1.FormFactor = 3 | |
2229 | rng1.Name = "Ring" | |
2230 | rng1.Size = Vector3.new(1, 1, 1) | |
2231 | rng1.Transparency = 0.35 | |
2232 | rng1.TopSurface = 0 | |
2233 | rng1.BottomSurface = 0 | |
2234 | local rngm1 = Instance.new("SpecialMesh", rng) | |
2235 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2236 | rngm1.Scale = Vector3.new(10, 10, 1) | |
2237 | rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0) | |
2238 | local Wave = Instance.new("Part", game.Workspace--[[?]]) | |
2239 | Wave.Name = "Shockwave" | |
2240 | Wave.BrickColor = BrickColor.new("Really black") | |
2241 | Wave.Size = Vector3.new(1, 1, 1) | |
2242 | Wave.Shape = "Ball" | |
2243 | Wave.CanCollide = false | |
2244 | Wave.Anchored = true | |
2245 | Wave.TopSurface = 0 | |
2246 | Wave.BottomSurface = 0 | |
2247 | Wave.Touched:connect(function(hit) | |
2248 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
2249 | local Occlude = true | |
2250 | local NotOccludes = { | |
2251 | char.Name; | |
2252 | "Wings"; | |
2253 | "Scythe"; | |
2254 | "Thingy"; | |
2255 | "Thingy2"; -- put all of the names in a table pls | |
2256 | } | |
2257 | for i,v in pairs(NotOccludes) do | |
2258 | if hit.Parent.Name == v then | |
2259 | Occlude = false | |
2260 | end | |
2261 | end | |
2262 | --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then | |
2263 | if Occlude then | |
2264 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 | |
2265 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 | |
2266 | end | |
2267 | end | |
2268 | end) | |
2269 | ||
2270 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
2271 | ||
2272 | coroutine.wrap(function() | |
2273 | for i = 1, 20, 0.2 do | |
2274 | rngm1.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
2275 | rng1.Transparency = i/20 | |
2276 | wait() | |
2277 | end | |
2278 | wait() | |
2279 | rng1:Destroy() | |
2280 | end)() | |
2281 | ||
2282 | Delay(0, function() | |
2283 | ||
2284 | if Daytime == false then | |
2285 | for i = 1, 50, 1 do | |
2286 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
2287 | Wave.CFrame = char.Torso.CFrame | |
2288 | local t = i / 50 | |
2289 | Wave.Transparency = t | |
2290 | wait() | |
2291 | end | |
2292 | else | |
2293 | for i = 1, 50, 1 do | |
2294 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
2295 | Wave.CFrame = char.Torso.CFrame | |
2296 | local t = i / 50 | |
2297 | Wave.Transparency = t | |
2298 | wait() | |
2299 | end | |
2300 | end | |
2301 | Wave:Destroy() | |
2302 | end) | |
2303 | Delay(0, function() | |
2304 | while wait() do | |
2305 | if Wave ~= nil then | |
2306 | Wave.CFrame = char.Torso.CFrame | |
2307 | else | |
2308 | break | |
2309 | end | |
2310 | end | |
2311 | end) | |
2312 | end | |
2313 | Shockwave() | |
2314 | for i = 1, 15 do | |
2315 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
2316 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
2317 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
2318 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
2319 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
2320 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
2321 | if Debounces.on == false then break end | |
2322 | wait() | |
2323 | end | |
2324 | for i = 1, 15 do | |
2325 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
2326 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
2327 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
2328 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
2329 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
2330 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
2331 | if Debounces.on == false then break end | |
2332 | wait() | |
2333 | end | |
2334 | for i = 1, 15 do | |
2335 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
2336 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
2337 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
2338 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
2339 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
2340 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
2341 | if Debounces.on == false then break end | |
2342 | wait() | |
2343 | end | |
2344 | for i = 1, 15 do | |
2345 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
2346 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
2347 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
2348 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
2349 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
2350 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
2351 | if Debounces.on == false then break end | |
2352 | wait() | |
2353 | end | |
2354 | for i = 1, 15 do | |
2355 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
2356 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
2357 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
2358 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
2359 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
2360 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
2361 | if Debounces.on == false then break end | |
2362 | wait() | |
2363 | end | |
2364 | for i = 1, 15 do | |
2365 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
2366 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
2367 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
2368 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
2369 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
2370 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
2371 | if Debounces.on == false then break end | |
2372 | wait() | |
2373 | end | |
2374 | wait(1.4) | |
2375 | Debounces.NoIdl = false | |
2376 | hum.WalkSpeed = 10 | |
2377 | Debounces.on = false | |
2378 | wait() | |
2379 | if Debounces.CanAttack == false then | |
2380 | Debounces.CanAttack = true | |
2381 | v:Destroy() | |
2382 | end | |
2383 | end | |
2384 | end | |
2385 | end) | |
2386 | ---------------------------------------------------- | |
2387 | mouse.KeyDown:connect(function(key) | |
2388 | if key == "m" then | |
2389 | hum.WalkSpeed = 0 | |
2390 | if Debounces.CanAttack == true then | |
2391 | Debounces.CanAttack = false | |
2392 | Debounces.on = true | |
2393 | Debounces.NoIdl = true | |
2394 | x = Instance.new("Sound",char) | |
2395 | x.SoundId = "http://www.roblox.com/asset/?id=169445572" | |
2396 | x.Looped = false | |
2397 | x.Pitch = 1.1 | |
2398 | x.Volume = 1 | |
2399 | x:Play() | |
2400 | x2 = Instance.new("Sound",char) | |
2401 | x2.SoundId = "http://www.roblox.com/asset/?id=169380495" | |
2402 | x2.Looped = false | |
2403 | x2.Pitch = .7 | |
2404 | x2.Volume = 1 | |
2405 | wait(.1) | |
2406 | x:Play() | |
2407 | x2:Play() | |
2408 | for i = 1, 20 do | |
2409 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2) | |
2410 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2) | |
2411 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2) | |
2412 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3.2, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2) | |
2413 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -1.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2) | |
2414 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.6, -2, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2) | |
2415 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.4) | |
2416 | if Debounces.on == false then break end | |
2417 | wait() | |
2418 | x:Destroy() | |
2419 | x2:Destroy() | |
2420 | end | |
2421 | wait(1) | |
2422 | local rng = Instance.new("Part", char) | |
2423 | rng.Anchored = true | |
2424 | rng.BrickColor = BrickColor.new("Really black") | |
2425 | rng.CanCollide = false | |
2426 | rng.FormFactor = 3 | |
2427 | rng.Name = "Ring" | |
2428 | rng.Size = Vector3.new(1, 1, 1) | |
2429 | rng.Transparency = 0.35 | |
2430 | rng.TopSurface = 0 | |
2431 | rng.BottomSurface = 0 | |
2432 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
2433 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2434 | local rngm = Instance.new("SpecialMesh", rng) | |
2435 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2436 | rngm.Scale = Vector3.new(1, 1, 2) | |
2437 | x = Instance.new("Sound",char) | |
2438 | x.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
2439 | x.Looped = false | |
2440 | x.Pitch = .7 | |
2441 | x.Volume = 1 | |
2442 | x:Play() | |
2443 | coroutine.wrap(function() | |
2444 | for i = 1, 60, 2 do | |
2445 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
2446 | rng.Transparency = i/60 | |
2447 | wait() | |
2448 | end | |
2449 | wait() | |
2450 | rng:Destroy() | |
2451 | end)() | |
2452 | hum.WalkSpeed = 50 | |
2453 | BV = Instance.new("BodyVelocity", torso) | |
2454 | BV.maxForce = Vector3.new(0,100000,0) | |
2455 | BV.P = 100000 | |
2456 | BV.velocity = Vector3.new(0,800,0) | |
2457 | for i = 1, 20 do | |
2458 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7) | |
2459 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
2460 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) | |
2461 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) | |
2462 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) | |
2463 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, 0, -2) * CFrame.Angles(math.rad(0), 0, 0), 0.7) | |
2464 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2465 | if Debounces.on == false then break end | |
2466 | wait() | |
2467 | end | |
2468 | x:Destroy() | |
2469 | BV:Destroy() | |
2470 | for i = 1, 30 do | |
2471 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
2472 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad (0), math.rad(0)), 0.3) | |
2473 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
2474 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
2475 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
2476 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.6) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
2477 | if Debounces.on == false then break end | |
2478 | wait() | |
2479 | end | |
2480 | if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then | |
2481 | for i = 1, 30 do | |
2482 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
2483 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2484 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
2485 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
2486 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2487 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2488 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2489 | if Debounces.on == false then break end | |
2490 | wait() | |
2491 | end | |
2492 | end | |
2493 | Debounces.on = false | |
2494 | Debounces.NoIdl = false | |
2495 | local ry,ht,ps=nil,nil,nil | |
2496 | while ht==nil do | |
2497 | ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char}) | |
2498 | wait() | |
2499 | end | |
2500 | z = Instance.new("Sound",char) | |
2501 | z.SoundId = "rbxassetid://142070127" | |
2502 | z.Volume = 1 | |
2503 | wait(.1) | |
2504 | z:Play() | |
2505 | Landing() | |
2506 | hum.WalkSpeed = 10 | |
2507 | if Debounces.CanAttack == false then | |
2508 | Debounces.CanAttack = true | |
2509 | end | |
2510 | end | |
2511 | end | |
2512 | end) | |
2513 | ---------------------------------------------------- | |
2514 | Grab = false | |
2515 | mouse.KeyDown:connect(function(key) | |
2516 | if key == "z" then | |
2517 | Debounces.on = true | |
2518 | Debounces.NoIdl = true | |
2519 | if Grab == false then | |
2520 | gp = nil | |
2521 | con1=larm.Touched:connect(function(hit) -- this is grab | |
2522 | ht = hit.Parent | |
2523 | hum1=ht:FindFirstChild('Humanoid') | |
2524 | if hum1 ~= nil then | |
2525 | hum1.PlatformStand=true | |
2526 | gp = ht | |
2527 | Grab = true | |
2528 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-3.3,0),CFrame.new(0,0,0)) | |
2529 | asd.Parent = larm | |
2530 | asd.Name = "asd" | |
2531 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0) | |
2532 | elseif hum1 == nil then | |
2533 | con1:disconnect() | |
2534 | wait() return | |
2535 | end | |
2536 | end) | |
2537 | for i = 1, 18 do | |
2538 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(36)), 0.2) | |
2539 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.65,.9,-.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
2540 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
2541 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-60), math.rad(0), 0), 0.2) | |
2542 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
2543 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
2544 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.9) | |
2545 | if Debounces.on == false then break end | |
2546 | wait() | |
2547 | end | |
2548 | con1:disconnect() | |
2549 | Debounces.on = false | |
2550 | Debounces.NoIdl = false | |
2551 | elseif Grab == true then | |
2552 | Grab = false | |
2553 | for i = 1, 20 do | |
2554 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.2) | |
2555 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-20)), 0.1) | |
2556 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
2557 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
2558 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
2559 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
2560 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2561 | if Debounces.on == false then end | |
2562 | wait() | |
2563 | end | |
2564 | if gp ~= nil then | |
2565 | for i,v in pairs(larm:GetChildren()) do | |
2566 | if v.Name == "asd" and v:IsA("Weld") then | |
2567 | v:Remove() | |
2568 | end | |
2569 | end | |
2570 | bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
2571 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
2572 | bv.P = 125000000000000 | |
2573 | bv.velocity = char.Head.CFrame.lookVector * 1000 | |
2574 | for i = 1, 12 do | |
2575 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.75)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)), 0.5) | |
2576 | if Debounces.on == false then end | |
2577 | wait() | |
2578 | end | |
2579 | ht=nil | |
2580 | Spawn(function() | |
2581 | wait(0.5) | |
2582 | bv:Destroy() | |
2583 | end) | |
2584 | Debounces.on = false | |
2585 | Debounces.NoIdl = false | |
2586 | elseif ht == nil then wait() | |
2587 | Grab = false | |
2588 | Debounces.on = false | |
2589 | Debounces.NoIdl = false | |
2590 | end | |
2591 | end | |
2592 | end | |
2593 | end) | |
2594 | ---------------------------------------------------- | |
2595 | mouse.KeyDown:connect(function(key) | |
2596 | if string.byte(key) == 52 then | |
2597 | char.Humanoid.WalkSpeed = 200 | |
2598 | end | |
2599 | end) | |
2600 | mouse.KeyUp:connect(function(key) | |
2601 | if string.byte(key) == 52 then | |
2602 | char.Humanoid.WalkSpeed = 10 | |
2603 | end | |
2604 | end) | |
2605 | ---------------------------------------------------- | |
2606 | ||
2607 | -------------------------------------------------- | |
2608 | local animpose = "Idle" | |
2609 | local lastanimpose = "Idle" | |
2610 | local sine = 0 | |
2611 | local change = 1 | |
2612 | local val = 0 | |
2613 | local ffing = false | |
2614 | ---------------------------------------------------- | |
2615 | xv2 = Instance.new("Sound", char) | |
2616 | xv2.SoundId = "http://www.roblox.com/asset/?id=187922823" | |
2617 | xv2.Looped = true | |
2618 | xv2.Volume = 1 | |
2619 | xv2.Pitch = 1 | |
2620 | local footsteps = false | |
2621 | ------------------------------- | |
2622 | game:GetService("RunService").RenderStepped:connect(function() | |
2623 | --[[if char.Humanoid.Jump == true then | |
2624 | jump = true | |
2625 | else | |
2626 | jump = false | |
2627 | end]] | |
2628 | char.Humanoid.FreeFalling:connect(function(f) | |
2629 | if f then | |
2630 | ffing = true | |
2631 | else | |
2632 | ffing = false | |
2633 | end | |
2634 | end) | |
2635 | sine = sine + change | |
2636 | if jumpn == true then | |
2637 | animpose = "Jumping" | |
2638 | elseif ffing == true then | |
2639 | animpose = "Freefalling" | |
2640 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
2641 | animpose = "Idle" | |
2642 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
2643 | animpose = "Walking" | |
2644 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
2645 | animpose = "Running" | |
2646 | end | |
2647 | if animpose ~= lastanimpose then | |
2648 | sine = 0 | |
2649 | if Debounces.NoIdl == false then | |
2650 | if animpose == "Idle" then | |
2651 | for i = 1, 2 do | |
2652 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2) | |
2653 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2) | |
2654 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
2655 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
2656 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
2657 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
2658 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2659 | end | |
2660 | elseif animpose == "Walking" then | |
2661 | for i = 1, 2 do | |
2662 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2) | |
2663 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2) | |
2664 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2) | |
2665 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2) | |
2666 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4) | |
2667 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4) | |
2668 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2669 | end | |
2670 | elseif animpose == "Running" then | |
2671 | for i = 1, 2 do | |
2672 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2) | |
2673 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2) | |
2674 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2) | |
2675 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2) | |
2676 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4) | |
2677 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4) | |
2678 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2679 | end | |
2680 | wait() | |
2681 | end | |
2682 | else | |
2683 | end | |
2684 | end | |
2685 | lastanimpose = animpose | |
2686 | if Debounces.NoIdl == false then | |
2687 | if animpose == "Idle" then | |
2688 | if stanceToggle == "Normal" then | |
2689 | change = 0.5 | |
2690 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(88+2*math.cos(sine/14)),math.rad(0),math.rad(20)), 0.2) | |
2691 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(-30),math.rad(-40-2*math.cos(sine/14))), 0.2) | |
2692 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2) | |
2693 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2) | |
2694 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2695 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2696 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2697 | elseif stanceToggle == "Sitting" then | |
2698 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(25-1*math.cos(sine/140)), math.rad(0), math.rad(20)), 0.2) | |
2699 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2) | |
2700 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2) | |
2701 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2) | |
2702 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2) | |
2703 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2) | |
2704 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0.2, -1.85, -0.9) * CFrame.Angles(math.rad(-120), math.rad(-90), math.rad(0)), 1) | |
2705 | end | |
2706 | elseif animpose == "Walking" then | |
2707 | if stanceToggle == "Normal" then | |
2708 | change = 1 | |
2709 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9+.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(90+2*math.cos(sine/7)), math.rad(0), math.rad(20)), 0.2) | |
2710 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/4, math.rad(1) + -math.sin(sine/14)/2, math.rad(-30)), 0.2) | |
2711 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/7)), math.rad(0), math.rad(0)),0.2) | |
2712 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/7)), 0, math.rad(0)), 0.2) | |
2713 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4) | |
2714 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4) | |
2715 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
2716 | end | |
2717 | elseif animpose == "Running" then | |
2718 | change = 1 | |
2719 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10-20*math.cos(sine/4)/2), math.rad(-40+10*math.cos(sine/4)/2), math.rad(50-10*math.cos(sine/4)/2)), 0.2) | |
2720 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .5)*CFrame.Angles(math.rad(10+20*math.cos(sine/4)/2), math.rad(40-10*math.cos(sine/4)/2), math.rad(-50+10*math.cos(sine/4)/2)), 0.2) | |
2721 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2) | |
2722 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2) | |
2723 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4) | |
2724 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4) | |
2725 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2726 | end | |
2727 | end | |
2728 | if animpose == "Walking" then | |
2729 | if footsteps == false then | |
2730 | xv2:Play() | |
2731 | footsteps = true | |
2732 | end | |
2733 | xv2.Pitch = 1.4 | |
2734 | elseif animpose == "Idle" then | |
2735 | xv2:Stop() | |
2736 | footsteps = false | |
2737 | elseif animpose == "Running" then | |
2738 | xv2.Pitch = 2 | |
2739 | if footsteps == false then | |
2740 | xv2:Play() | |
2741 | footsteps = true | |
2742 | end | |
2743 | endchar.Humanoid.MaxHealth = math.huge | |
2744 | wait() | |
2745 | char.Humanoid.Health = math.huge | |
2746 | ||
2747 | end) --- made by 123jl123 |