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