SHOW:
|
|
- or go back to the newest paste.
1 | --[[Name:The Jully Of Death]]-- | |
2 | --[[Create:KingAbsalom]]-- | |
3 | --[[Edit:Skrubl0rdzI]]-- | |
4 | local p = game.Players.LocalPlayer | |
5 | local char = p.Character | |
6 | local mouse = p:GetMouse() | |
7 | local larm = char["Left Arm"] | |
8 | local rarm = char["Right Arm"] | |
9 | local lleg = char["Left Leg"] | |
10 | local rleg = char["Right Leg"] | |
11 | local hed = char.Head | |
12 | local torso = char.Torso | |
13 | local hum = char.Humanoid | |
14 | local cam = game.Workspace.CurrentCamera | |
15 | local root = char.HumanoidRootPart | |
16 | local rj = root.RootJoint | |
17 | local deb = false | |
18 | local shot = 0 | |
19 | local stanceToggle = "Idle1" | |
20 | local l = game:GetService("Lighting") | |
21 | local rs = game:GetService("RunService").RenderStepped | |
22 | local hb = game:GetService("RunService").Heartbeat | |
23 | local Stepped = game:GetService("RunService").Stepped | |
24 | TorsoColor = torso.BrickColor | |
25 | hed.face:Destroy() | |
26 | local glowz = Instance.new("Fire",torso) | |
27 | glowz.Size = 15 | |
28 | glowz.Heat = 0 | |
29 | local glowz = Instance.new("Fire",torso) | |
30 | glowz.Size = 15 | |
31 | glowz.Heat = 0 | |
32 | local glowz = Instance.new("Fire",torso) | |
33 | glowz.Size = 15 | |
34 | glowz.Heat = 0 | |
35 | local glowz = Instance.new("Fire",torso) | |
36 | glowz.Size = 15 | |
37 | glowz.Heat = 0 | |
38 | hum.JumpPower = 360 | |
39 | hum.WalkSpeed = 1000 | |
40 | Debounces = { | |
41 | CanAttack = true; | |
42 | NoIdl = false; | |
43 | Slashing = false; | |
44 | Slashed = false; | |
45 | RPunch = false; | |
46 | RPunched = false; | |
47 | LPunch = false; | |
48 | LPunched = false; | |
49 | } | |
50 | local Touche = {char.Name, } | |
51 | for i,v in pairs(char:children()) do | |
52 | if v:IsA("Hat") then | |
53 | v:Destroy() | |
54 | end | |
55 | end | |
56 | for i,v in pairs(char:children()) do | |
57 | if v:IsA("Accessory") then | |
58 | v:Destroy() | |
59 | end | |
60 | end | |
61 | for i,v in pairs(char:children()) do | |
62 | if v:IsA("Hair") then | |
63 | v:Destroy() | |
64 | end | |
65 | end | |
66 | for i,v in pairs(char:children()) do | |
67 | if v:IsA("Shirt") then | |
68 | v:Destroy() | |
69 | end | |
70 | end | |
71 | for i,v in pairs(char:children()) do | |
72 | if v:IsA("Pants") then | |
73 | v:Destroy() | |
74 | end | |
75 | end | |
76 | fat = Instance.new("BindableEvent", script) | |
77 | fat.Name = "Heartbeat" | |
78 | script:WaitForChild("Heartbeat") | |
79 | frame = 0.013333333333333 | |
80 | tf = 0 | |
81 | allowframeloss = false | |
82 | tossremainder = false | |
83 | lastframe = tick() | |
84 | script.Heartbeat:Fire() | |
85 | local ss = Instance.new("Sound",char) | |
86 | ss.Volume = 1.6 | |
87 | ss.Looped = true | |
88 | ss.Pitch = 1 | |
89 | ss.SoundId = "rbxassetid://536812365" | |
90 | ss:Play() | |
91 | function sbchat(msg,displayname) | |
92 | if not displayname then | |
93 | displayname = 'bela' | |
94 | end | |
95 | for i,v in pairs(game:GetService('Players'):GetChildren()) do | |
96 | local st = Instance.new('StringValue') | |
97 | st.Name = 'SB_Chat' | |
98 | st.Value = displayname..'/'..msg | |
99 | delay(0.2,function() st.Parent = v end) | |
100 | end | |
101 | end | |
102 | ||
103 | sbchat("EIGHT GATES!!",'[Might Guy]') | |
104 | spawn(function() --_RHas | |
105 | local ef1=Instance.new('Part',larm) | |
106 | local am=Instance.new('BlockMesh',ef1) | |
107 | ef1.Anchored,ef1.CanCollide=false,false | |
108 | ef1.Transparency=0.3 | |
109 | ef1.Material = "Sand" | |
110 | am.Scale=Vector3.new(5.5,5.5,5.5) | |
111 | ef1.Size=Vector3.new(.2,.2,.2) | |
112 | local ef2=ef1:Clone() | |
113 | local ef3=ef2:Clone() | |
114 | local ef4=ef3:Clone() | |
115 | ef2.Material = "Sand" | |
116 | ef3.Material = "Sand" | |
117 | ef4.Material = "Sand" | |
118 | ef3.Parent,ef4.Parent=larm,rarm | |
119 | ef2.Parent=lleg | |
120 | local wa,wb=Instance.new('Weld',larm),Instance.new('Weld',larm) | |
121 | local wc,wd=Instance.new('Weld',rarm),Instance.new('Weld',rarm) | |
122 | wa.Part0,wb.Part0=larm,rarm | |
123 | wa.Part1,wb.Part1=ef1,ef2 | |
124 | wc.Part0,wd.Part0=larm,rarm | |
125 | wc.Part1,wd.Part1=ef3,ef4 | |
126 | wa.C0,wb.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
127 | wc.C0,wd.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
128 | while wait(0) do | |
129 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
130 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
131 | ef1.BrickColor=BrickColor.new("Dark red") | |
132 | ef3.BrickColor=BrickColor.new("Dark red") | |
133 | ef4.BrickColor=BrickColor.new("Dark red") | |
134 | ef2.BrickColor=BrickColor.new("Dark red") | |
135 | end | |
136 | end) | |
137 | spawn(function() --_RHas | |
138 | local ef1=Instance.new('Part',lleg) | |
139 | local am=Instance.new('BlockMesh',ef1) | |
140 | ef1.Anchored,ef1.CanCollide=false,false | |
141 | ef1.Transparency=0.3 | |
142 | ef1.Material = "Sand" | |
143 | am.Scale=Vector3.new(5.5,5.5,5.5) | |
144 | ef1.Size=Vector3.new(.2,.2,.2) | |
145 | local ef2=ef1:Clone() | |
146 | local ef3=ef2:Clone() | |
147 | local ef4=ef3:Clone() | |
148 | ef2.Material = "Sand" | |
149 | ef3.Material = "Sand" | |
150 | ef4.Material = "Sand" | |
151 | ef3.Parent,ef4.Parent=lleg,rleg | |
152 | ef2.Parent=lleg | |
153 | local wa,wb=Instance.new('Weld',lleg),Instance.new('Weld',lleg) | |
154 | local wc,wd=Instance.new('Weld',rleg),Instance.new('Weld',rleg) | |
155 | wa.Part0,wb.Part0=lleg,rleg | |
156 | wa.Part1,wb.Part1=ef1,ef2 | |
157 | wc.Part0,wd.Part0=lleg,rleg | |
158 | wc.Part1,wd.Part1=ef3,ef4 | |
159 | wa.C0,wb.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
160 | wc.C0,wd.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
161 | while wait(0) do | |
162 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
163 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
164 | ef1.BrickColor=BrickColor.new("Dark red") | |
165 | ef3.BrickColor=BrickColor.new("Dark red") | |
166 | ef4.BrickColor=BrickColor.new("Dark red") | |
167 | ef2.BrickColor=BrickColor.new("Dark red") | |
168 | end | |
169 | end) | |
170 | spawn(function() --_RHas | |
171 | local ef1=Instance.new('Part',hed) | |
172 | local am=Instance.new('BlockMesh',ef1) | |
173 | ef1.Anchored,ef1.CanCollide=false,false | |
174 | ef1.Transparency=0.7 | |
175 | ef1.Material = "Sand" | |
176 | am.Scale=Vector3.new(40,40,40) | |
177 | ef1.Size=Vector3.new(.2,.2,.2) | |
178 | local ef2=ef1:Clone() | |
179 | local ef3=ef2:Clone() | |
180 | local ef4=ef3:Clone() | |
181 | ef2.Material = "Neon" | |
182 | ef3.Material = "Neon" | |
183 | ef4.Material = "Neon" | |
184 | ef3.Parent,ef4.Parent=hed,hed | |
185 | ef2.Parent=lleg | |
186 | local wa,wb=Instance.new('Weld',hed),Instance.new('Weld',hed) | |
187 | local wc,wd=Instance.new('Weld',hed),Instance.new('Weld',hed) | |
188 | wa.Part0,wb.Part0=hed,hed | |
189 | wa.Part1,wb.Part1=ef1,ef2 | |
190 | wc.Part0,wd.Part0=hed,hed | |
191 | wc.Part1,wd.Part1=ef3,ef4 | |
192 | wa.C0,wb.C0=CFrame.new(0,-2,0),CFrame.new(0,-3,0) | |
193 | wc.C0,wd.C0=CFrame.new(0,-2,0),CFrame.new(0,-3,0) | |
194 | while wait(0) do | |
195 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
196 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
197 | ef1.BrickColor=BrickColor.new("Dark red") | |
198 | ef3.BrickColor=BrickColor.new("Dark red") | |
199 | ef4.BrickColor=BrickColor.new("Dark red") | |
200 | ef2.BrickColor=BrickColor.new("Dark red") | |
201 | end | |
202 | end) | |
203 | local runServ = game:GetService("RunService").RenderStepped | |
204 | ||
205 | local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head) | |
206 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame") | |
207 | local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel") | |
208 | HBill.Size = UDim2.new(15,0,2.2,0) | |
209 | HBill.Name = "Health Display" | |
210 | HBill.StudsOffset = Vector3.new(0,4,0) | |
211 | HBill.AlwaysOnTop = true | |
212 | HBill.Enabled = true | |
213 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
214 | HMain.BackgroundTransparency = 1 | |
215 | HMain.Size = UDim2.new(1,0,1,0) | |
216 | HBarBack.Parent = HMain | |
217 | HBarBack.BackgroundColor3 = Color3.new(0,0,0) | |
218 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
219 | HBarBack.BorderSizePixel = 2 | |
220 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
221 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
222 | HBar.Parent = HBarBack | |
223 | HBar.BackgroundColor3 = Color3.new(1, 0, 0) | |
224 | HBar.BorderColor3 = Color3.new(0,0,0) | |
225 | HBar.Size = UDim2.new(.5,0,1,0) | |
226 | HHealth.BackgroundTransparency = 1 | |
227 | HHealth.Size = UDim2.new(1,0,1,0) | |
228 | HHealth.Font = "Code" | |
229 | HHealth.Text = " " | |
230 | HHealth.TextScaled = true | |
231 | HHealth.TextColor3 = Color3.new(1,1,1) | |
232 | HHealth.TextStrokeColor3 = Color3.new(1,0,0) | |
233 | HHealth.TextStrokeTransparency = 0 | |
234 | HName.Parent = HMain | |
235 | HName.BackgroundTransparency = 1 | |
236 | HName.Size = UDim2.new(1,0,.5,0) | |
237 | HName.Font = "Code" | |
238 | HName.Text = "Might Guy" | |
239 | HName.TextScaled = true | |
240 | HName.TextColor3 = Color3.new(1,1,1) | |
241 | HName.TextStrokeColor3 = Color3.new(1,0,0) | |
242 | HName.TextStrokeTransparency = 0 | |
243 | HName.TextYAlignment = "Top" | |
244 | ||
245 | runServ:connect(function() | |
246 | HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]" | |
247 | HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4) | |
248 | end) | |
249 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
250 | ||
251 | tf = tf + s | |
252 | if frame <= tf then | |
253 | if allowframeloss then | |
254 | script.Heartbeat:Fire() | |
255 | lastframe = tick() | |
256 | else | |
257 | for i = 1, math.floor(tf / frame) do | |
258 | script.Heartbeat:Fire() | |
259 | end | |
260 | lastframe = tick() | |
261 | end | |
262 | if tossremainder then | |
263 | tf = 0 | |
264 | else | |
265 | tf = tf - frame * math.floor(tf / frame) | |
266 | end | |
267 | end | |
268 | end | |
269 | ) | |
270 | for i,v in pairs(hed:GetChildren()) do | |
271 | if v:IsA("Sound") then | |
272 | v:Destroy() | |
273 | end | |
274 | end | |
275 | Debounces = {CanAttack = true, CanJoke = true, NoIdl = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Slashing = false, Slashed = false, ks = false, ks2 = false} | |
276 | weld5 = function(part0, part1, c0, c1) | |
277 | ||
278 | weeld = Instance.new("Weld", part0) | |
279 | weeld.Part0 = part0 | |
280 | weeld.Part1 = part1 | |
281 | weeld.C0 = c0 | |
282 | weeld.C1 = c1 | |
283 | return weeld | |
284 | end | |
285 | ||
286 | NewPart = function(prnt, siz, cf, trans, anc, mat, col) | |
287 | ||
288 | local prt = Instance.new("Part") | |
289 | prt.Parent = prnt | |
290 | prt.Name = "Part" | |
291 | prt.Size = siz | |
292 | prt.CanCollide = false | |
293 | prt.Anchored = anc | |
294 | prt.Locked = true | |
295 | prt.Transparency = trans | |
296 | prt.TopSurface = 10 | |
297 | prt.BottomSurface = 10 | |
298 | prt.FrontSurface = 10 | |
299 | prt.BackSurface = 10 | |
300 | prt.LeftSurface = 10 | |
301 | prt.RightSurface = 10 | |
302 | prt:BreakJoints() | |
303 | if not cf then | |
304 | prt.CFrame = CFrame.new(30, 10, 30) | |
305 | prt.Material = mat | |
306 | prt.BrickColor = BrickColor.new(col) | |
307 | m = Instance.new("SpecialMesh", prt) | |
308 | m.MeshType = 6 | |
309 | return prt | |
310 | end | |
311 | end | |
312 | ||
313 | lerp = function(a, b, t) | |
314 | ||
315 | return a + (b - a) * t | |
316 | end | |
317 | ||
318 | slerp = function(a, b, t) | |
319 | ||
320 | dot = a:Dot(b) | |
321 | if t > 0.5 or not a then | |
322 | do return dot <= 0.99999 and dot >= -0.99999 or b end | |
323 | r = math.acos(dot) | |
324 | do return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r) end | |
325 | end | |
326 | end | |
327 | ||
328 | matrixInterpolate = function(a, b, t) | |
329 | ||
330 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
331 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
332 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx, by, bz), t) | |
333 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) | |
334 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) | |
335 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) | |
336 | local t = v1:Dot(v2) | |
337 | if t >= 0 and t ~= 0 and t <= 0 then | |
338 | return CFrame.new() | |
339 | end | |
340 | return CFrame.new(v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z) | |
341 | end | |
342 | ||
343 | genWeld = function(a, b) | |
344 | ||
345 | local w = Instance.new("Weld", a) | |
346 | w.Part0 = a | |
347 | w.Part1 = b | |
348 | return w | |
349 | end | |
350 | ||
351 | weld = function(a, b) | |
352 | ||
353 | local weld = Instance.new("Weld") | |
354 | weld.Name = "W" | |
355 | weld.Part0 = a | |
356 | weld.Part1 = b | |
357 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
358 | weld.Parent = a | |
359 | return weld | |
360 | end | |
361 | ||
362 | Lerp = function(c1, c2, al) | |
363 | ||
364 | local com1 = {c1.X, c1.Y, c1.Z, c1:toEulerAnglesXYZ()} | |
365 | local com2 = {c2.X, c2.Y, c2.Z, c2:toEulerAnglesXYZ()} | |
366 | for i,v in pairs(com1) do | |
367 | com1[i] = v + (com2[i] - v) * al | |
368 | end | |
369 | return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1))) | |
370 | end | |
371 | ||
372 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
373 | ||
374 | local wld = Instance.new("Weld", wp1) | |
375 | wld.Part0 = wp0 | |
376 | wld.Part1 = wp1 | |
377 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
378 | end | |
379 | ||
380 | newWeld(torso, larm, -1.5, 0.5, 0) | |
381 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
382 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
383 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
384 | newWeld(torso, hed, 0, 1.5, 0) | |
385 | newWeld(torso, lleg, -0.5, -1, 0) | |
386 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
387 | newWeld(torso, rleg, 0.5, -1, 0) | |
388 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
389 | newWeld(root, torso, 0, -1, 0) | |
390 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
391 | pr = Instance.new("Part",hed) | |
392 | pr.BrickColor = BrickColor.new("Dark red") | |
393 | pr.Material = "Neon" | |
394 | pr.Reflectance = 0 | |
395 | pr.Anchored = false | |
396 | pr.CanCollide = false | |
397 | pr.Archivable = false | |
398 | pr.Locked = true | |
399 | pr.Size = Vector3.new(1,1,1) | |
400 | prm = Instance.new("SpecialMesh",pr) | |
401 | prm.MeshType = "FileMesh" | |
402 | prm.MeshId = "rbxassetid://560718478" | |
403 | prm.Scale = Vector3.new(6,6,6) | |
404 | newWeld(hed, pr, 0, 0, 0) | |
405 | pr.Weld.C1 = CFrame.new(0,-.8,-.43) * CFrame.Angles(0,0,0) | |
406 | New = function(Object, Parent, Name, Data) | |
407 | ||
408 | local Object = Instance.new(Object) | |
409 | if not Data then | |
410 | for Index,Value in pairs({}) do | |
411 | Object[Index] = Value | |
412 | end | |
413 | Object.Parent = Parent | |
414 | Object.Name = Name | |
415 | return Object | |
416 | end | |
417 | end | |
418 | spawn(function() --_RHas | |
419 | local ef1=Instance.new('Part',part1) | |
420 | local am=Instance.new('BlockMesh',ef1) | |
421 | ef1.Anchored,ef1.CanCollide=false,false | |
422 | ef1.Transparency=0.3 | |
423 | ef1.Material = "Sand" | |
424 | am.Scale=Vector3.new(0.1,0.1,0.1) | |
425 | ef1.Size=Vector3.new(0.1) | |
426 | local ef2=ef1:Clone() | |
427 | local ef3=ef2:Clone() | |
428 | local ef4=ef3:Clone() | |
429 | ef2.Material = "Sand" | |
430 | ef3.Material = "Sand" | |
431 | ef4.Material = "Sand" | |
432 | ef3.Parent,ef4.Parent=part1,part1 | |
433 | ef2.Parent=part1 | |
434 | local wa,wb=Instance.new('Weld',part1),Instance.new('Weld',part1) | |
435 | local wc,wd=Instance.new('Weld',part1),Instance.new('Weld',part1) | |
436 | wa.Part0,wb.Part0=part1,part1 | |
437 | wa.Part1,wb.Part1=ef1,ef2 | |
438 | wc.Part0,wd.Part0=part1,part1 | |
439 | wc.Part1,wd.Part1=ef3,ef4 | |
440 | wa.C0,wb.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
441 | wc.C0,wd.C0=CFrame.new(0,-1,0),CFrame.new(0,-1,0) | |
442 | while wait(0) do | |
443 | wa.C0,wb.C0=wa.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wb.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
444 | wc.C0,wd.C0=wc.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),wd.C0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))) | |
445 | ef1.BrickColor=BrickColor.new("Dark red") | |
446 | ef3.BrickColor=BrickColor.new("Dark red") | |
447 | ef4.BrickColor=BrickColor.new("Dark red") | |
448 | ef2.BrickColor=BrickColor.new("Dark red") | |
449 | end | |
450 | end) | |
451 | local animpose = "Idle1" | |
452 | local lastanimpose = "Idle1" | |
453 | local grab = false | |
454 | local Smooth = 0.5 | |
455 | local sine = 0 | |
456 | local change = 0.5 | |
457 | local val = 0 | |
458 | local ffing = false | |
459 | mod4 = Instance.new("Model", char) | |
460 | ptez = {0.7, 0.8, 0.9, 1} | |
461 | FindNearestTorso = function(Position, Distance, SinglePlayer) | |
462 | ||
463 | if SinglePlayer.Torso.CFrame.p - Position.magnitude >= Distance then | |
464 | do return not SinglePlayer end | |
465 | do | |
466 | local List = {} | |
467 | for i,v in pairs(workspace:GetChildren()) do | |
468 | if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and v.Torso.Position - Position.magnitude <= Distance then | |
469 | table.insert(List, v) | |
470 | end | |
471 | end | |
472 | do return List end | |
473 | -- DECOMPILER ERROR: 3 unprocessed JMP targets | |
474 | end | |
475 | end | |
476 | end | |
477 | ||
478 | Slam = function() | |
479 | ||
480 | local part = Instance.new("Part", mod4) | |
481 | part.Anchored = true | |
482 | part.CanCollide = false | |
483 | part.FormFactor = "Custom" | |
484 | part.Size = Vector3.new(0.2, 0.2, 0.2) | |
485 | part.CFrame = root.CFrame * CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(90), 0, 0) | |
486 | part.Transparency = 0.7 | |
487 | part.BrickColor = BrickColor.new("Really black") | |
488 | mesh = Instance.new("SpecialMesh", part) | |
489 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
490 | mesh.Scale = Vector3.new(3, 3, 3) | |
491 | local part2 = Instance.new("Part", mod4) | |
492 | part2.Anchored = true | |
493 | part2.CanCollide = false | |
494 | part2.FormFactor = "Custom" | |
495 | part2.Size = Vector3.new(0.2, 0.2, 0.2) | |
496 | part2.CFrame = root.CFrame * CFrame.new(0, -2.4, -1.6) | |
497 | part2.Transparency = 0.7 | |
498 | part2.BrickColor = BrickColor.new("Lime green") | |
499 | mesh2 = Instance.new("SpecialMesh", part2) | |
500 | mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
501 | mesh2.Scale = Vector3.new(3, 1.5, 3) | |
502 | x = Instance.new("Sound", larm) | |
503 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
504 | x.Pitch = ptez[math.random(1, #ptez)] | |
505 | x.Volume = 1 | |
506 | x1 = Instance.new("Sound", larm) | |
507 | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" | |
508 | x1.Pitch = ptez[math.random(1, #ptez)] | |
509 | x1.Volume = 1 | |
510 | x:Play() | |
511 | x1:Play() | |
512 | for i,v in pairs(FindNearestTorso(torso.CFrame.p, 4)) do | |
513 | if v:FindFirstChild("Humanoid") then | |
514 | v.Humanoid.Health = 0 | |
515 | end | |
516 | end | |
517 | coroutine.resume(coroutine.create(function() | |
518 | ||
519 | for i = 0, 0.62, 0.13 do | |
520 | fat.Event:wait() | |
521 | part.CFrame = part.CFrame | |
522 | part.Transparency = i | |
523 | mesh.Scale = mesh.Scale + Vector3.new(0.4, 0.4, 0.4) | |
524 | part2.CFrame = part2.CFrame | |
525 | part2.Transparency = i | |
526 | mesh2.Scale = mesh2.Scale + Vector3.new(0.4, 0.2, 0.4) | |
527 | end | |
528 | part.Parent = nil | |
529 | part2.Parent = nil | |
530 | x:Destroy() | |
531 | end | |
532 | )) | |
533 | end | |
534 | ||
535 | wPart = function(x, y, z, color, tr, cc, an, parent) | |
536 | ||
537 | local wp = Instance.new("WedgePart", parent or Weapon) | |
538 | wp.formFactor = "Custom" | |
539 | wp.Size = Vector3.new(x, y, z) | |
540 | wp.BrickColor = BrickColor.new(color) | |
541 | wp.CanCollide = cc | |
542 | wp.Transparency = tr | |
543 | wp.Anchored = an | |
544 | wp.TopSurface = 0 | |
545 | return wp | |
546 | end | |
547 | ||
548 | Mesh = function(par, num, x, y, z) | |
549 | ||
550 | local msh = _ | |
551 | if num == 1 then | |
552 | msh = Instance.new("CylinderMesh", par) | |
553 | else | |
554 | if num == 2 then | |
555 | msh = Instance.new("SpecialMesh", par) | |
556 | msh.MeshType = 3 | |
557 | else | |
558 | if num == 3 then | |
559 | msh = Instance.new("BlockMesh", par) | |
560 | else | |
561 | if num == 4 then | |
562 | msh = Instance.new("SpecialMesh", par) | |
563 | msh.MeshType = "Torso" | |
564 | else | |
565 | if type(num) == "string" then | |
566 | msh = Instance.new("SpecialMesh", par) | |
567 | msh.MeshId = num | |
568 | end | |
569 | end | |
570 | end | |
571 | end | |
572 | end | |
573 | msh.Scale = Vector3.new(x, y, z) | |
574 | return msh | |
575 | end | |
576 | ||
577 | local CFrameFromTopBack = function(at, top, back) | |
578 | ||
579 | local right = top:Cross(back) | |
580 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
581 | end | |
582 | ||
583 | Triangle = function(a, b, c) | |
584 | ||
585 | local edg1 = c - a:Dot(b - a.unit) | |
586 | local edg2 = a - b:Dot(c - b.unit) | |
587 | local edg3 = b - c:Dot(a - c.unit) | |
588 | if edg1 <= b - a.magnitude and edg1 >= 0 then | |
589 | a = a | |
590 | else | |
591 | -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg' | |
592 | ||
593 | if edg2 <= c - b.magnitude and edg2 >= 0 then | |
594 | a = b | |
595 | else | |
596 | -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg' | |
597 | ||
598 | -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg' | |
599 | ||
600 | if edg3 <= a - c.magnitude and edg3 >= 0 then | |
601 | a = c | |
602 | else | |
603 | print("unreachable") | |
604 | end | |
605 | end | |
606 | end | |
607 | local len1 = c - a:Dot(b - a.unit) | |
608 | local len2 = b - a.magnitude - len1 | |
609 | local width = a + b - a.unit * len1 - c.magnitude | |
610 | local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit) | |
611 | local list = {} | |
612 | if len1 > 0.01 then | |
613 | local w1 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char) | |
614 | do | |
615 | local sz = Vector3.new(0.2, width, len1) | |
616 | w1.Size = sz | |
617 | local sp = Mesh(w1, 2, 0, 0, 0) | |
618 | sp.MeshType = "Wedge" | |
619 | sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size | |
620 | w1:BreakJoints() | |
621 | w1.Anchored = true | |
622 | w1.Transparency = 0.7 | |
623 | Spawn(function() | |
624 | ||
625 | for i = 0, 1, 0.1 do | |
626 | fat.Event:wait() | |
627 | w1.Transparency = w1.Transparency + 0.03 | |
628 | end | |
629 | end | |
630 | ) | |
631 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
632 | table.insert(list, w1) | |
633 | end | |
634 | end | |
635 | do | |
636 | if len2 > 0.01 then | |
637 | local w2 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char) | |
638 | local sz = Vector3.new(0.2, width, len2) | |
639 | w2.Size = sz | |
640 | local sp = Mesh(w2, 2, 0, 0, 0) | |
641 | sp.MeshType = "Wedge" | |
642 | sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size | |
643 | w2:BreakJoints() | |
644 | w2.Anchored = true | |
645 | w2.Transparency = 0.7 | |
646 | Spawn(function() | |
647 | ||
648 | for i = 0, 1, 0.1 do | |
649 | fat.Event:wait() | |
650 | w2.Transparency = w2.Transparency + 0.03 | |
651 | end | |
652 | end | |
653 | ) | |
654 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
655 | table.insert(list, w2) | |
656 | end | |
657 | do | |
658 | return unpack(list) | |
659 | end | |
660 | end | |
661 | end | |
662 | ||
663 | trail = function(p, t, h) | |
664 | ||
665 | Spawn(function() | |
666 | ||
667 | local blcf = p.CFrame | |
668 | local scfr = blcf | |
669 | for i = 1, t do | |
670 | local blcf = p.CFrame | |
671 | if scfr and p.Position - scfr.p.magnitude > 0.1 then | |
672 | local a, b = Triangle(scfr * CFrame.new(0, h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p, blcf * CFrame.new(0, h / 2, 0).p) | |
673 | if a then | |
674 | game.Debris:AddItem(a, 1) | |
675 | end | |
676 | if b then | |
677 | game.Debris:AddItem(b, 1) | |
678 | end | |
679 | local a, b = Triangle(blcf * CFrame.new(0, h / 2, 0).p, blcf * CFrame.new(0, -h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p) | |
680 | if a then | |
681 | game.Debris:AddItem(a, 1) | |
682 | end | |
683 | if b then | |
684 | game.Debris:AddItem(b, 1) | |
685 | end | |
686 | scfr = blcf | |
687 | else | |
688 | do | |
689 | do | |
690 | if not scfr then | |
691 | scfr = blcf | |
692 | end | |
693 | fat.Event:wait() | |
694 | -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out DO_STMT | |
695 | ||
696 | -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
697 | ||
698 | -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_STMT | |
699 | ||
700 | end | |
701 | end | |
702 | end | |
703 | end | |
704 | scfr = nil | |
705 | end | |
706 | ) | |
707 | end | |
708 | ||
709 | rarm.Touched:connect(function(ht) | |
710 | ||
711 | hit = ht.Parent | |
712 | if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.RPunch == true and Debounces.RPunched == false then | |
713 | Debounces.RPunched = true | |
714 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8)) | |
715 | if Debounces.ks == true then | |
716 | z = Instance.new("Sound", hed) | |
717 | z.SoundId = "rbxassetid://169380525" | |
718 | z.Pitch = ptz[math.random(1, #ptz)] | |
719 | z.Volume = 1 | |
720 | z:Play() | |
721 | end | |
722 | wait(0.4) | |
723 | Debounces.RPunched = false | |
724 | end | |
725 | if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.RPunch == true and Debounces.RPunched == false then | |
726 | Debounces.RPunched = true | |
727 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8)) | |
728 | if Debounces.ks == true then | |
729 | z = Instance.new("Sound", hed) | |
730 | z.SoundId = "rbxassetid://169380525" | |
731 | z.Pitch = ptz[math.random(1, #ptz)] | |
732 | z.Volume = 1 | |
733 | z:Play() | |
734 | end | |
735 | wait(0.4) | |
736 | Debounces.RPunched = false | |
737 | end | |
738 | end | |
739 | ) | |
740 | larm.Touched:connect(function(ht) | |
741 | ||
742 | hit = ht.Parent | |
743 | if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.LPunch == true and Debounces.LPunched == false then | |
744 | Debounces.LPunched = true | |
745 | hit:FindFirstChild("Humanoid").Health = 0 | |
746 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -160 | |
747 | if Debounces.ks2 == true then | |
748 | z = Instance.new("Sound", hed) | |
749 | z.SoundId = "rbxassetid://169380525" | |
750 | z.Pitch = ptz[math.random(1, #ptz)] | |
751 | z.Volume = 1 | |
752 | z:Play() | |
753 | end | |
754 | wait(0.4) | |
755 | Debounces.LPunched = false | |
756 | end | |
757 | if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.LPunch == true and Debounces.LPunched == false then | |
758 | Debounces.LPunched = true | |
759 | hit.Parent:FindFirstChild("Humanoid").Health = 0 | |
760 | if Debounces.ks2 == true then | |
761 | z = Instance.new("Sound", hed) | |
762 | z.SoundId = "rbxassetid://169380525" | |
763 | z.Pitch = ptz[math.random(1, #ptz)] | |
764 | z.Volume = 1 | |
765 | z:Play() | |
766 | end | |
767 | wait(0.4) | |
768 | Debounces.LPunched = false | |
769 | end | |
770 | end | |
771 | ) | |
772 | local acos = math.acos | |
773 | local sqrt = math.sqrt | |
774 | local Vec3 = Vector3.new | |
775 | local fromAxisAngle = CFrame.fromAxisAngle | |
776 | local toAxisAngle = function(CFr) | |
777 | ||
778 | local X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = CFr:components() | |
779 | local Angle = math.acos((R00 + R11 + R22 - 1) / 2) | |
780 | local A = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2 | |
781 | if A ~= 0 or not 1e-05 then | |
782 | local B = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2 | |
783 | if B ~= 0 or not 1e-05 then | |
784 | local C = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2 | |
785 | if C ~= 0 or not 1e-05 then | |
786 | local x = (R21 - R12) / sqrt(A) | |
787 | local y = (R02 - R20) / sqrt(B) | |
788 | local z = (R10 - R01) / sqrt(C) | |
789 | return Vec3(x, y, z), Angle | |
790 | end | |
791 | end | |
792 | end | |
793 | end | |
794 | ||
795 | ApplyTrig = function(Num, Func) | |
796 | ||
797 | local Min, Max = Func(0), Func(1) | |
798 | local i = Func(Num) | |
799 | return (i - Min) / (Max - Min) | |
800 | end | |
801 | ||
802 | LerpCFrame = function(CFrame1, CFrame2, Num) | |
803 | ||
804 | local Vec, Ang = toAxisAngle(CFrame1:inverse() * CFrame2) | |
805 | return CFrame1 * fromAxisAngle(Vec, Ang * Num) + (CFrame2.p - CFrame1.p) * Num | |
806 | end | |
807 | ||
808 | Crater = function(Torso, Radius) | |
809 | ||
810 | Spawn(function() | |
811 | ||
812 | local Ray = Ray.new(Torso.Position, Vector3.new(0, -1, 0) * 10) | |
813 | local Ignore = {} | |
814 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
815 | if v.Character ~= nil then | |
816 | Ignore[#Ignore + 1] = v.Character | |
817 | end | |
818 | end | |
819 | local Hit, Pos, SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray, Ignore) | |
820 | if Hit == nil then | |
821 | return | |
822 | end | |
823 | local Parts = {} | |
824 | for i = 1, 360, 10 do | |
825 | local P = Instance.new("Part", Torso.Parent) | |
826 | P.Anchored = true | |
827 | P.FormFactor = "Custom" | |
828 | P.BrickColor = Hit.BrickColor | |
829 | P.Material = Hit.Material | |
830 | P.TopSurface = "Smooth" | |
831 | P.BottomSurface = "Smooth" | |
832 | P.Size = Vector3.new(5, 10, 10) * (math.random(80, 100) / 100) | |
833 | 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))) | |
834 | 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} | |
835 | if math.random(0, 5) == 0 then | |
836 | local P = Instance.new("Part", Torso.Parent) | |
837 | P.Anchored = true | |
838 | P.FormFactor = "Custom" | |
839 | P.BrickColor = Hit.BrickColor | |
840 | P.Material = Hit.Material | |
841 | P.TopSurface = "Smooth" | |
842 | P.BottomSurface = "Smooth" | |
843 | P.Size = Vector3.new(2, 2, 2) * (math.random(80, 100) / 100) | |
844 | 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))) | |
845 | 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} | |
846 | end | |
847 | end | |
848 | for i = 0, 1, 0.05 do | |
849 | for i2,v in pairs(Parts) do | |
850 | v[1].CFrame = LerpCFrame(v[2], v[3], ApplyTrig(i, math.cos)) | |
851 | end | |
852 | wait(0.02) | |
853 | end | |
854 | for i,v in pairs(Parts) do | |
855 | if v[1].Size.X > 2.1 then | |
856 | v[1].CFrame = v[1].CFrame + Vector3.new(0, 2, 0) | |
857 | end | |
858 | v[1].Anchored = false | |
859 | end | |
860 | for i = 0, 1, 0.05 do | |
861 | for i2,v in pairs(Parts) do | |
862 | v[1].Transparency = i | |
863 | if i == 1 then | |
864 | v[1]:Destroy() | |
865 | else | |
866 | if i >= 0.25 then | |
867 | v[1].CanCollide = false | |
868 | end | |
869 | end | |
870 | end | |
871 | wait(0.02) | |
872 | end | |
873 | Parts = nil | |
874 | end | |
875 | ) | |
876 | end | |
877 | ||
878 | -------------------------------------------------- | |
879 | function Dmg() | |
880 | local partofdeath = hitb | |
881 | local function CreateRegion3FromLocAndSize(Position, Size) | |
882 | local SizeOffset = Size/2 | |
883 | local Point1 = Position - SizeOffset | |
884 | local Point2 = Position + SizeOffset | |
885 | return Region3.new(Point1, Point2) | |
886 | end | |
887 | local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size) | |
888 | for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do | |
889 | Spawn(function() | |
890 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
891 | Debounces.Slashed = true | |
892 | ypcall(function() | |
893 | local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid") | |
894 | humanoid.Health = 0 | |
895 | end) | |
896 | wait(.4) | |
897 | Debounces.Slashed = false | |
898 | end | |
899 | end) | |
900 | end | |
901 | end | |
902 | ||
903 | pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
904 | ptz = {0.7, 0.8, 0.9, 1, 1.1} | |
905 | ||
906 | mouse.KeyDown:connect(function(key) | |
907 | if key == "q" then | |
908 | if Debounces.CanAttack == true then | |
909 | Debounces.CanAttack = false | |
910 | Debounces.on = true | |
911 | Debounces.NoIdl = true | |
912 | sbchat("PHANTOM FIST!!!",'[Might Guy]') | |
913 | for i = 1, 25 do | |
914 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
915 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
916 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
917 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
918 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
919 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
920 | if Debounces.on == false then break end | |
921 | rs:wait() | |
922 | end | |
923 | Spawn(function() | |
924 | local Parts = {} | |
925 | for Y = 1,1 do | |
926 | local P = Instance.new("Part",char) | |
927 | P.Anchored = true | |
928 | P.FormFactor = "Custom" | |
929 | P.CanCollide = false | |
930 | P.Size = Vector3.new(20,20,999) | |
931 | P.TopSurface = "SmoothNoOutlines" | |
932 | P.BottomSurface = "SmoothNoOutlines" | |
933 | P.Transparency = 0.5 | |
934 | P.Material = "Neon" | |
935 | P.BrickColor = BrickColor.new("Really black") | |
936 | P.Name = tostring(Y) | |
937 | local Emitter = Instance.new("ParticleEmitter", P) | |
938 | local color1 = Color3.new(1, 0, 0) | |
939 | local color2 = Color3.new(0, 0, 0) | |
940 | Emitter.Color = ColorSequence.new(color1, color2) | |
941 | Emitter.Size = NumberSequence.new(20) | |
942 | Emitter.Texture = "rbxassetid://243098098" | |
943 | Emitter.Lifetime = NumberRange.new(1) | |
944 | Emitter.Rate = 1000 | |
945 | Emitter.Rotation = NumberRange.new(720) | |
946 | Emitter.RotSpeed = NumberRange.new(140) | |
947 | Emitter.Speed = NumberRange.new(100) | |
948 | Emitter.VelocitySpread = 360 | |
949 | local Emitter = Instance.new("ParticleEmitter", P) | |
950 | local color1 = Color3.new(1, 0, 0) | |
951 | local color2 = Color3.new(0, 0, 0) | |
952 | Emitter.Color = ColorSequence.new(color1, color2) | |
953 | Emitter.Size = NumberSequence.new(20) | |
954 | Emitter.Texture = "rbxassetid://243098098" | |
955 | Emitter.Lifetime = NumberRange.new(1) | |
956 | Emitter.Rate = 1000 | |
957 | Emitter.Rotation = NumberRange.new(720) | |
958 | Emitter.RotSpeed = NumberRange.new(140) | |
959 | Emitter.Speed = NumberRange.new(100) | |
960 | Emitter.VelocitySpread = 360 | |
961 | local Emitter = Instance.new("ParticleEmitter", P) | |
962 | local color1 = Color3.new(1, 0, 0) | |
963 | local color2 = Color3.new(0, 0, 0) | |
964 | Emitter.Color = ColorSequence.new(color1, color2) | |
965 | Emitter.Size = NumberSequence.new(20) | |
966 | Emitter.Texture = "rbxassetid://243098098" | |
967 | Emitter.Lifetime = NumberRange.new(1) | |
968 | Emitter.Rate = 1000 | |
969 | Emitter.Rotation = NumberRange.new(720) | |
970 | Emitter.RotSpeed = NumberRange.new(140) | |
971 | Emitter.Speed = NumberRange.new(100) | |
972 | Emitter.VelocitySpread = 360 | |
973 | local i = (Y+5)/(10) | |
974 | i = 0-math.cos(math.pi*i-(math.pi/10)) | |
975 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*5))*CFrame.Angles(math.rad(Y*1),0,math.rad(180)) | |
976 | --[[P.Touched:connect(function(ht) | |
977 | local hit = ht.Parent | |
978 | if hit:FindFirstChild("Humanoid") then | |
979 | hit.Humanoid:TakeDamage(math.random(20,50)) | |
980 | end | |
981 | end)]]-- | |
982 | s = Instance.new("Sound",P) | |
983 | s.SoundId = "rbxassetid://228343271" | |
984 | s.Volume = 1 | |
985 | s.Pitch = 0.9 | |
986 | s:Play() | |
987 | sa = Instance.new("Sound",P) | |
988 | sa.SoundId = "rbxassetid://419447292" | |
989 | sa.Volume = 1 | |
990 | sa.Pitch = 1 | |
991 | sa:Play() | |
992 | P.Touched:connect(function(ht) | |
993 | hit = ht.Parent | |
994 | if ht and hit:IsA("Model") then | |
995 | if hit:FindFirstChild("Humanoid") then | |
996 | if hit.Name ~= p.Name then | |
997 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
998 | Debounces.Slashed = true]]-- | |
999 | hit:FindFirstChild("Humanoid").Health = -1 | |
1000 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1001 | wait() | |
1002 | --Debounces.Slashed = false | |
1003 | --end | |
1004 | end | |
1005 | end | |
1006 | elseif ht and hit:IsA("Hat") then | |
1007 | if hit.Parent.Name ~= p.Name then | |
1008 | if hit.Parent:FindFirstChild("Humanoid") then | |
1009 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
1010 | Debounces.Slashed = true | |
1011 | hit.Parent:FindFirstChild("Humanoid").Health = -1 | |
1012 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1013 | wait() | |
1014 | Debounces.Slashed = false | |
1015 | end | |
1016 | end | |
1017 | end | |
1018 | end | |
1019 | end) | |
1020 | Parts[#Parts+1] = P | |
1021 | end | |
1022 | local BREAKIT = false | |
1023 | local CParts = {} | |
1024 | local Rocks = {} | |
1025 | local LastPos = nil | |
1026 | for i = 1,100 do | |
1027 | for i2,v in pairs(Parts) do | |
1028 | v.CFrame = v.CFrame*CFrame.new(0,0,0) | |
1029 | local cf = v.CFrame | |
1030 | v.Size = v.Size+Vector3.new(0.1,0.1,10) | |
1031 | v.CFrame = cf | |
1032 | v.Transparency = v.Transparency+0.01 | |
1033 | if v.Transparency >= 0.975 then BREAKIT = true end | |
1034 | if v.Name == "0" then | |
1035 | local Ignore = {} | |
1036 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
1037 | if v.Character ~= nil then | |
1038 | Ignore[#Ignore+1] = v.Character | |
1039 | end | |
1040 | end | |
1041 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-500,0)) | |
1042 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
1043 | if Hit ~= nil then | |
1044 | if #Rocks == 1 then | |
1045 | for i = 1,5 do | |
1046 | local P = Instance.new("Part",char) | |
1047 | Rocks[#Rocks+1] = P | |
1048 | P.Anchored = true | |
1049 | P.FormFactor = "Custom" | |
1050 | P.BrickColor = BrickColor.new("Dark red") | |
1051 | P.Material = "Grass" | |
1052 | P.Transparency = 0 | |
1053 | P.TopSurface = "Smooth" | |
1054 | P.BottomSurface = "Smooth" | |
1055 | P.Size = Vector3.new(3,3,3)*(math.random(500,900)/100) | |
1056 | end | |
1057 | end | |
1058 | for i,P in pairs(Rocks) do | |
1059 | 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))) | |
1060 | end | |
1061 | local P = Instance.new("Part",char) | |
1062 | CParts[#CParts+1] = {P,tick()} | |
1063 | P.Anchored = true | |
1064 | P.FormFactor = "Custom" | |
1065 | P.BrickColor = BrickColor.new("Dark red") | |
1066 | P.Material = "Grass" | |
1067 | P.Transparency = 0 | |
1068 | P.TopSurface = "Smooth" | |
1069 | P.BottomSurface = "Smooth" | |
1070 | P.Size = Vector3.new(2,2,2)*(math.random(100,300)/100) | |
1071 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
1072 | Pos = Pos.p | |
1073 | 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))) | |
1074 | local P = P:Clone() | |
1075 | CParts[#CParts+1] = {P,tick()} | |
1076 | P.Parent = char | |
1077 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
1078 | Pos = Pos.p | |
1079 | 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))) | |
1080 | if LastPos ~= nil then | |
1081 | local P = P:Clone() | |
1082 | CParts[#CParts+1] = {P,tick()} | |
1083 | P.Parent = char | |
1084 | P.BrickColor = BrickColor.new("Dark red") | |
1085 | P.Material = "Grass" | |
1086 | P.Transparency = 0 | |
1087 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
1088 | Pos = Pos.p | |
1089 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
1090 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
1091 | --P.Velocity = Vector3.new(0,-1000,0) | |
1092 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
1093 | end | |
1094 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
1095 | end | |
1096 | end | |
1097 | end | |
1098 | if BREAKIT then break end | |
1099 | wait() | |
1100 | end | |
1101 | for i,v in pairs(Rocks) do | |
1102 | CParts[#CParts+1] = {v,tick()} | |
1103 | end | |
1104 | for i,v in pairs(Parts) do | |
1105 | v:Destroy() | |
1106 | end | |
1107 | Parts = nil | |
1108 | while true do | |
1109 | local t = tick() | |
1110 | local p = nil | |
1111 | for i,v in pairs(CParts) do | |
1112 | if t-v[2] > 4 then | |
1113 | v[1].Transparency = v[1].Transparency+0.05 | |
1114 | if v[1].Transparency >= 1 then | |
1115 | v[1]:Destroy() | |
1116 | CParts[i] = nil | |
1117 | end | |
1118 | end | |
1119 | p = v | |
1120 | end | |
1121 | if p == nil then break end | |
1122 | wait() | |
1123 | end | |
1124 | for i,v in pairs(CParts) do | |
1125 | v:Destroy() | |
1126 | end | |
1127 | CParts = {} | |
1128 | end) | |
1129 | for i = 1, 20 do | |
1130 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
1131 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
1132 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
1133 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
1134 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
1135 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
1136 | if Debounces.on == false then break end | |
1137 | rs:wait() | |
1138 | end | |
1139 | if Debounces.CanAttack == false then | |
1140 | Debounces.CanAttack = true | |
1141 | Debounces.on = false | |
1142 | Debounces.NoIdl = false | |
1143 | end | |
1144 | end | |
1145 | end | |
1146 | end) | |
1147 | mouse.KeyDown:connect(function(key) | |
1148 | if key == "e" then | |
1149 | if Debounces.CanAttack == true then | |
1150 | Debounces.CanAttack = false | |
1151 | Debounces.on = true | |
1152 | Debounces.NoIdl = true | |
1153 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5} | |
1154 | z = Instance.new("Sound", rarm) | |
1155 | z.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
1156 | z.Volume = 1.25 | |
1157 | z.Pitch = pt[math.random(1,#pt)] | |
1158 | z.Looped = false | |
1159 | z:Play() | |
1160 | Debounces.RPunch = true | |
1161 | Debounces.LPunch = true | |
1162 | Debounces.ks = true | |
1163 | Debounces.ks2 = true | |
1164 | for i = 1, 1 do | |
1165 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1166 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1167 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1168 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1169 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1170 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1171 | if Debounces.on == false then break end | |
1172 | wait() | |
1173 | end | |
1174 | z2 = Instance.new("Sound", larm) | |
1175 | z2.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1176 | z2.Volume = 1.25 | |
1177 | z2.Pitch = pt[math.random(1,#pt)] | |
1178 | z2.Looped = false | |
1179 | z2:Play() | |
1180 | for i = 1, 1 do | |
1181 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1182 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1183 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1184 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1185 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1186 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1187 | if Debounces.on == false then break end | |
1188 | wait() | |
1189 | end | |
1190 | z3 = Instance.new("Sound", rarm) | |
1191 | z3.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1192 | z3.Volume = 1.25 | |
1193 | z3.Pitch = pt[math.random(1,#pt)] | |
1194 | z3.Looped = false | |
1195 | z3:Play() | |
1196 | for i = 1, 1 do | |
1197 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1198 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1199 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1200 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1201 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1202 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1203 | if Debounces.on == false then break end | |
1204 | wait() | |
1205 | end | |
1206 | z4 = Instance.new("Sound", larm) | |
1207 | z4.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1208 | z4.Volume = 1.25 | |
1209 | z4.Pitch = pt[math.random(1,#pt)] | |
1210 | z4.Looped = false | |
1211 | z4:Play() | |
1212 | for i = 1, 1 do | |
1213 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1214 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1215 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1216 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1217 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1218 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1219 | if Debounces.on == false then break end | |
1220 | wait() | |
1221 | end | |
1222 | z5 = Instance.new("Sound", rarm) | |
1223 | z5.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1224 | z5.Volume = 1.25 | |
1225 | z5.Pitch = pt[math.random(1,#pt)] | |
1226 | z5.Looped = false | |
1227 | z5:Play() | |
1228 | for i = 1, 1 do | |
1229 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1230 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1231 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1232 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1233 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1234 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1235 | if Debounces.on == false then break end | |
1236 | wait() | |
1237 | end | |
1238 | z6 = Instance.new("Sound", larm) | |
1239 | z6.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1240 | z6.Volume = 1.25 | |
1241 | z6.Pitch = pt[math.random(1,#pt)] | |
1242 | z6.Looped = false | |
1243 | z6:Play() | |
1244 | for i = 1, 1 do | |
1245 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1246 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1247 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1248 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1249 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1250 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1251 | if Debounces.on == false then break end | |
1252 | wait() | |
1253 | end | |
1254 | z7 = Instance.new("Sound", rarm) | |
1255 | z7.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
1256 | z7.Volume = 1.25 | |
1257 | z7.Pitch = pt[math.random(1,#pt)] | |
1258 | z7.Looped = false | |
1259 | z7:Play() | |
1260 | for i = 1, 1 do | |
1261 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1262 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1263 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1264 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1265 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1266 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1267 | if Debounces.on == false then break end | |
1268 | wait() | |
1269 | end | |
1270 | z8 = Instance.new("Sound", larm) | |
1271 | z8.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1272 | z8.Volume = 1.25 | |
1273 | z8.Pitch = pt[math.random(1,#pt)] | |
1274 | z8.Looped = false | |
1275 | z8:Play() | |
1276 | for i = 1, 1 do | |
1277 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1278 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1279 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1280 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1281 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1282 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1283 | if Debounces.on == false then break end | |
1284 | wait() | |
1285 | end | |
1286 | z9 = Instance.new("Sound", rarm) | |
1287 | z9.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1288 | z9.Volume = 1.25 | |
1289 | z9.Pitch = pt[math.random(1,#pt)] | |
1290 | z9.Looped = false | |
1291 | z9:Play() | |
1292 | for i = 1, 1 do | |
1293 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1294 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1295 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1296 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1297 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1298 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1299 | if Debounces.on == false then break end | |
1300 | wait() | |
1301 | end | |
1302 | z10 = Instance.new("Sound", larm) | |
1303 | z10.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1304 | z10.Volume = 1.25 | |
1305 | z10.Pitch = pt[math.random(1,#pt)] | |
1306 | z10.Looped = false | |
1307 | z10:Play() | |
1308 | for i = 1, 1 do | |
1309 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1310 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1311 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1312 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1313 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1314 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1315 | if Debounces.on == false then break end | |
1316 | wait() | |
1317 | end | |
1318 | z11 = Instance.new("Sound", rarm) | |
1319 | z11.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1320 | z11.Volume = 1.25 | |
1321 | z11.Pitch = pt[math.random(1,#pt)] | |
1322 | z11.Looped = false | |
1323 | z11:Play() | |
1324 | for i = 1, 1 do | |
1325 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1326 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1327 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1328 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1329 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1330 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1331 | if Debounces.on == false then break end | |
1332 | wait() | |
1333 | end | |
1334 | z12 = Instance.new("Sound", larm) | |
1335 | z12.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1336 | z12.Volume = 1.25 | |
1337 | z12.Pitch = pt[math.random(1,#pt)] | |
1338 | z12.Looped = false | |
1339 | z12:Play() | |
1340 | for i = 1, 1 do | |
1341 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1342 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1343 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1344 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1345 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1346 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1347 | if Debounces.on == false then break end | |
1348 | wait() | |
1349 | end | |
1350 | z13 = Instance.new("Sound", rarm) | |
1351 | z13.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1352 | z13.Volume = 1.25 | |
1353 | z13.Pitch = pt[math.random(1,#pt)] | |
1354 | z13.Looped = false | |
1355 | z13:Play() | |
1356 | for i = 1, 1 do | |
1357 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1358 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1359 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1360 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1361 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1362 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1363 | if Debounces.on == false then break end | |
1364 | wait() | |
1365 | end | |
1366 | z14 = Instance.new("Sound", larm) | |
1367 | z14.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1368 | z14.Volume = 1.25 | |
1369 | z14.Pitch = pt[math.random(1,#pt)] | |
1370 | z14.Looped = false | |
1371 | z14:Play() | |
1372 | for i = 1, 1 do | |
1373 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1374 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1375 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1376 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1377 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1378 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1379 | if Debounces.on == false then break end | |
1380 | wait() | |
1381 | end | |
1382 | z15 = Instance.new("Sound", rarm) | |
1383 | z15.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1384 | z15.Volume = 1.25 | |
1385 | z15.Pitch = pt[math.random(1,#pt)] | |
1386 | z15.Looped = false | |
1387 | z15:Play() | |
1388 | for i = 1, 1 do | |
1389 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1390 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1391 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1392 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1393 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1394 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1395 | if Debounces.on == false then break end | |
1396 | wait() | |
1397 | end | |
1398 | z16 = Instance.new("Sound", larm) | |
1399 | z16.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1400 | z16.Volume = 1.25 | |
1401 | z16.Pitch = pt[math.random(1,#pt)] | |
1402 | z16.Looped = false | |
1403 | z16:Play() | |
1404 | for i = 1, 1 do | |
1405 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1406 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1407 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1408 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1409 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1410 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1411 | if Debounces.on == false then break end | |
1412 | wait() | |
1413 | end | |
1414 | z17 = Instance.new("Sound", rarm) | |
1415 | z17.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
1416 | z17.Volume = 1.25 | |
1417 | z17.Pitch = pt[math.random(1,#pt)] | |
1418 | z17.Looped = false | |
1419 | z17:Play() | |
1420 | for i = 1, 1 do | |
1421 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1422 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1423 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1424 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1425 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1426 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1427 | if Debounces.on == false then break end | |
1428 | wait() | |
1429 | end | |
1430 | z18 = Instance.new("Sound", larm) | |
1431 | z18.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1432 | z18.Volume = 1.25 | |
1433 | z18.Pitch = pt[math.random(1,#pt)] | |
1434 | z18.Looped = false | |
1435 | z18:Play() | |
1436 | for i = 1, 1 do | |
1437 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1438 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1439 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1440 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1441 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1442 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1443 | if Debounces.on == false then break end | |
1444 | wait() | |
1445 | end | |
1446 | z19 = Instance.new("Sound", rarm) | |
1447 | z19.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1448 | z19.Volume = 1.25 | |
1449 | z19.Pitch = pt[math.random(1,#pt)] | |
1450 | z19.Looped = false | |
1451 | z19:Play() | |
1452 | for i = 1, 1 do | |
1453 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1454 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1455 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1456 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1457 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1458 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1459 | if Debounces.on == false then break end | |
1460 | wait() | |
1461 | end | |
1462 | z20 = Instance.new("Sound", larm) | |
1463 | z20.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
1464 | z20.Volume = 1.25 | |
1465 | z20.Pitch = pt[math.random(1,#pt)] | |
1466 | z20.Looped = false | |
1467 | z20:Play() | |
1468 | for i = 1, 1 do | |
1469 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1470 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1471 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1472 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1473 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1474 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1475 | if Debounces.on == false then break end | |
1476 | wait() | |
1477 | end | |
1478 | z:Destroy() | |
1479 | z2:Destroy() | |
1480 | z3:Destroy() | |
1481 | z4:Destroy() | |
1482 | z5:Destroy() | |
1483 | z6:Destroy() | |
1484 | z7:Destroy() | |
1485 | z8:Destroy() | |
1486 | z9:Destroy() | |
1487 | z10:Destroy() | |
1488 | z11:Destroy() | |
1489 | z12:Destroy() | |
1490 | z13:Destroy() | |
1491 | z14:Destroy() | |
1492 | z15:Destroy() | |
1493 | z16:Destroy() | |
1494 | z17:Destroy() | |
1495 | z18:Destroy() | |
1496 | z19:Destroy() | |
1497 | z20:Destroy() | |
1498 | Debounces.LPunch = false | |
1499 | Debounces.RPunch = false | |
1500 | Debounces.ks = false | |
1501 | Debounces.ks2 = false | |
1502 | if Debounces.CanAttack == false then | |
1503 | Debounces.CanAttack = true | |
1504 | Debounces.on = false | |
1505 | Debounces.NoIdl = false | |
1506 | end | |
1507 | end | |
1508 | end | |
1509 | end) | |
1510 | mouse.KeyDown:connect(function(key) | |
1511 | ||
1512 | if string.byte(key) == 52 then | |
1513 | Swing = 2 | |
1514 | char.Humanoid.WalkSpeed = 28 | |
1515 | end | |
1516 | end | |
1517 | ) | |
1518 | mouse.KeyUp:connect(function(key) | |
1519 | ||
1520 | if string.byte(key) == 52 then | |
1521 | Swing = 1 | |
1522 | char.Humanoid.WalkSpeed = 16 | |
1523 | end | |
1524 | end | |
1525 | ) | |
1526 | jump = false | |
1527 | rs:connect(function() | |
1528 | ||
1529 | if char.Humanoid.Jump == true then | |
1530 | jump = true | |
1531 | else | |
1532 | jump = false | |
1533 | end | |
1534 | char.Humanoid.FreeFalling:connect(function(f) | |
1535 | ||
1536 | if f then | |
1537 | ffing = true | |
1538 | else | |
1539 | ffing = false | |
1540 | end | |
1541 | end | |
1542 | ) | |
1543 | sine = sine + change | |
1544 | if jump == true then | |
1545 | animpose = "Jumping" | |
1546 | else | |
1547 | if ffing == true then | |
1548 | animpose = "Freefalling" | |
1549 | else | |
1550 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then | |
1551 | animpose = "Idle" | |
1552 | else | |
1553 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 20 then | |
1554 | animpose = "Walking" | |
1555 | else | |
1556 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 20 then | |
1557 | animpose = "Running" | |
1558 | end | |
1559 | end | |
1560 | end | |
1561 | end | |
1562 | end | |
1563 | RightLeg = CFrame.new(0.5, -1, 0) | |
1564 | LeftLeg = CFrame.new(-0.5, -1, 0) | |
1565 | lefth = (torso.CFrame*LeftLeg) | |
1566 | righth = (torso.CFrame*RightLeg) | |
1567 | ||
1568 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
1569 | ||
1570 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
1571 | ||
1572 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
1573 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
1574 | if animpose ~= lastanimpose then | |
1575 | sine = 0 | |
1576 | if Debounces.NoIdl == false then | |
1577 | if stanceToggle == "Idle1" then | |
1578 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-12 - 4 * math.cos(sine / 22)), math.rad(-12 - 2 * math.cos(sine / 22)), math.rad(12 + 2 * math.cos(sine / 22))), 0.3) | |
1579 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, -0.2) * CFrame.Angles(math.rad(20 + 4 * math.cos(sine / 22)), math.rad(-22 - 2 * math.cos(sine / 22)), math.rad(-15 - 2 * math.cos(sine / 22))), 0.3) | |
1580 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-12 + 2.5 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.2) | |
1581 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2 + 2 * math.cos(sine / 22)), math.rad(0), 0), 0.2) | |
1582 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 22)), math.rad(5), math.rad(-5)), 0.2) | |
1583 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 22)), math.rad(-5), math.rad(5)), 0.2) | |
1584 | else | |
1585 | if stanceToggle == "Idle2" then | |
1586 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-22 - 4 * math.cos(sine / 12)), math.rad(-40 - 2 * math.cos(sine / 12)), math.rad(24 + 2 * math.cos(sine / 12))), 0.3) | |
1587 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.6, -0.6) * CFrame.Angles(math.rad(90 + 4 * math.cos(sine / 12)), math.rad(0), math.rad(50 - 2 * math.cos(sine / 12))), 0.3) | |
1588 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-6 + 2.5 * math.cos(sine / 12)), math.rad(0), math.rad(0)), 0.2) | |
1589 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20 + 2 * math.cos(sine / 12)), math.rad(0), 0), 0.2) | |
1590 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7 - 2 * math.cos(sine / 12)), math.rad(7), math.rad(-5)), 0.2) | |
1591 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30 - 2 * math.cos(sine / 12)), math.rad(-9), math.rad(5)), 0.2) | |
1592 | end | |
1593 | end | |
1594 | fat.Event:wait() | |
1595 | end | |
1596 | end | |
1597 | lastanimpose = animpose | |
1598 | if Debounces.NoIdl == false then | |
1599 | if animpose == "Idle" then | |
1600 | change = 0.2 | |
1601 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(20+10*math.cos(sine/10))), 0.4) | |
1602 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(-40-20*math.cos(sine/10))), 0.4) | |
1603 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2) | |
1604 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
1605 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05) | |
1606 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0-0.1*math.cos(sine/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(30), math.rad(-10-2*math.cos(sine/10))), 0.4) | |
1607 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(sine/10))), 0.4) | |
1608 | else | |
1609 | if animpose == "Walking" then | |
1610 | change = 0.5 | |
1611 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 + 0.05 * math.cos(sine / -4), -math.sin(sine / -4) / -4) * CFrame.Angles(math.sin(sine / -4) / -2.8, -math.sin(sine / -4) / -3, math.rad(5 - -7 * math.cos(sine / -2)) + root.RotVelocity.Y / -15), 0.4) | |
1612 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7) | |
1613 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 2), -math.sin(sine / 4) / 4) * CFrame.Angles(math.sin(sine / 4) / 2.8, -math.sin(sine / 4) / 3, math.rad(-10 - 7 * math.cos(sine / 2)) + root.RotVelocity.Y / 30), 0.4) | |
1614 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7) | |
1615 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 + 0.1 * math.cos(sine / 2)) * CFrame.Angles(math.rad(-10 + 4 * math.cos(sine / 2)), math.rad(0 - 8 * math.cos(sine / 4) / 2.3), math.rad(0)), 0.4) | |
1616 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.7) | |
1617 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.12 * math.cos(sine / 2), 0) * CFrame.Angles(math.rad(-4 + 2 * math.cos(sine / 2)), math.rad(0 + 10 * math.cos(sine / 4) / 2.3) + root.RotVelocity.Y / 30, math.rad(0) + root.RotVelocity.Y / 30), 0.4) | |
1618 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
1619 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5, -1 - math.cos(sine / 4) * 0.2, 0 + math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * AngleThetaL.Z, AngleThetaL.X, math.sin(sine / 4) * 3 * -AngleThetaL.X - root.RotVelocity.Y / 20), 0.8) | |
1620 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1621 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5, -1 + math.cos(sine / 4) * 0.2, 0 - math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * -AngleThetaR.Z, AngleThetaR.X, math.sin(sine / 4) * 3 * AngleThetaR.X - root.RotVelocity.Y / 20), 0.8) | |
1622 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1623 | else | |
1624 | if animpose == "Running" then | |
1625 | change = 1.1 | |
1626 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.54, 0) * CFrame.Angles(math.rad(-34), math.rad(-15), math.rad(26)), 0.2) | |
1627 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36) | |
1628 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24 + 0.6 * math.cos(sine / 4) / 1.4, 0.54, 0 - 0.8 * math.cos(sine / 4)) * CFrame.Angles(math.rad(6 + 140 * math.cos(sine / 4) / 1.2), math.rad(90), math.rad(20 + 70 * math.cos(sine / 4))), 0.2) | |
1629 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
1630 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-8 + 12 * math.cos(sine / 2) / 1.5), math.rad(0 + 12 * math.cos(sine / 4)), math.rad(0)), 0.2) | |
1631 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.5) | |
1632 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.2 * math.cos(sine / 2) / 1.7, 0) * CFrame.Angles(math.rad(-14 + 10 * math.cos(sine / 2) / 1.5), math.rad(0 - 12 * math.cos(sine / 4)) - root.RotVelocity.Y / 10, math.rad(0) + root.RotVelocity.Y / 20), 0.2) | |
1633 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1634 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.8 - 0.4 * math.cos(sine / 4) / 2, math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + -math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8) | |
1635 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1636 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8 + 0.4 * math.cos(sine / 4) / 2, -math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8) | |
1637 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1638 | else | |
1639 | if animpose == "Jumping" then | |
1640 | change = 1 | |
1641 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2) | |
1642 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36) | |
1643 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2) | |
1644 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
1645 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2) | |
1646 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
1647 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1648 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1649 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
1650 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1651 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1652 | else | |
1653 | if animpose == "Freefalling" then | |
1654 | change = 1 | |
1655 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-40), math.rad(20), math.rad(50)), 0.2) | |
1656 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36) | |
1657 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(110), math.rad(-20), math.rad(-30)), 0.2) | |
1658 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
1659 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), 0), 0.2) | |
1660 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) | |
1661 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1662 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
1663 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1664 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, 0.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2) | |
1665 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1666 | ||
1667 | ||
1668 | plr = game.Players.LocalPlayer | |
1669 | char = plr.Character | |
1670 | hum = char.Humanoid | |
1671 | tool = Instance.new("HopperBin", plr.Backpack) | |
1672 | tool.Name = "Click Explode" | |
1673 | mouse = plr:GetMouse() | |
1674 | ||
1675 | - | hum.MaxHealth = 1e+173 |
1675 | + | tool.Selected:connect(function() |
1676 | mouse.Button1Down:connect(function() | |
1677 | - | hum.Health = 1e+173 |
1677 | + | if tool.Active == true and mouse.Target.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent:FindFirstChild("Torso") then |
1678 | local torso = mouse.Target.Parent:FindFirstChild("Torso") | |
1679 | local thum = torso.Parent:FindFirstChild("Humanoid") | |
1680 | if thum ~= hum then | |
1681 | ||
1682 | local humrootpart = torso.Parent:FindFirstChild("HumanoidRootPart") | |
1683 | ep = Instance.new("Explosion", workspace) | |
1684 | ep.Position = torso.Position | |
1685 | game.Debris:AddItem(ep, 2) | |
1686 | end | |
1687 | end | |
1688 | end) | |
1689 | end) | |
1690 | end | |
1691 | end | |
1692 | end | |
1693 | end | |
1694 | end | |
1695 | end | |
1696 | end | |
1697 | ) | |
1698 | while true do wait() | |
1699 | hum.MaxHealth = math.huge | |
1700 | wait(0.5) | |
1701 | hum.Health = math.huge | |
1702 | end |