SHOW:
|
|
- or go back to the newest paste.
1 | Player=game:GetService("Players").LocalPlayer | |
2 | Character=Player.Character | |
3 | PlayerGui=Player.PlayerGui | |
4 | Backpack=Player.Backpack | |
5 | Torso=Character.Torso | |
6 | Head=Character.Head | |
7 | Humanoid=Character.Humanoid | |
8 | m=Instance.new('Model',Character) | |
9 | LeftArm=Character["Left Arm"] | |
10 | LeftLeg=Character["Left Leg"] | |
11 | RightArm=Character["Right Arm"] | |
12 | RightLeg=Character["Right Leg"] | |
13 | LS=Torso["Left Shoulder"] | |
14 | LH=Torso["Left Hip"] | |
15 | RS=Torso["Right Shoulder"] | |
16 | RH=Torso["Right Hip"] | |
17 | Face = Head.face | |
18 | Neck=Torso.Neck | |
19 | it=Instance.new | |
20 | attacktype=1 | |
21 | vt=Vector3.new | |
22 | cf=CFrame.new | |
23 | euler=CFrame.fromEulerAnglesXYZ | |
24 | angles=CFrame.Angles | |
25 | cloaked=false | |
26 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
27 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
28 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
29 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
30 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
31 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
32 | RootPart=Character.HumanoidRootPart | |
33 | RootJoint=RootPart.RootJoint | |
34 | RootCF=euler(-1.57,0,3.14) | |
35 | attack = false | |
36 | attackdebounce = false | |
37 | deb=false | |
38 | equipped=true | |
39 | hand=false | |
40 | MMouse=nil | |
41 | combo=0 | |
42 | mana=0 | |
43 | trispeed=1 | |
44 | pathtrans=.7 | |
45 | attackmode='none' | |
46 | local idle=0 | |
47 | local Anim="Idle" | |
48 | local Effects={} | |
49 | local gun=true | |
50 | local shoot=false | |
51 | player=nil | |
52 | cloak=true | |
53 | lightcolor='Bright blue' | |
54 | ||
55 | local Color1=Torso.BrickColor | |
56 | ||
57 | ||
58 | mouse=Player:GetMouse() | |
59 | --save shoulders | |
60 | RSH, LSH=nil, nil | |
61 | --welds | |
62 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
63 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
64 | LH=Torso["Left Hip"] | |
65 | RH=Torso["Right Hip"] | |
66 | TorsoColor=Torso.BrickColor | |
67 | function NoOutline(Part) | |
68 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
69 | end | |
70 | ||
71 | ||
72 | ||
73 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
74 | local fp=it("Part") | |
75 | fp.formFactor=formfactor | |
76 | fp.Parent=parent | |
77 | fp.Reflectance=reflectance | |
78 | fp.Transparency=transparency | |
79 | fp.CanCollide=false | |
80 | fp.Locked=true | |
81 | fp.BrickColor=brickcolor | |
82 | fp.Name=name | |
83 | fp.Size=size | |
84 | fp.Position=Torso.Position | |
85 | NoOutline(fp) | |
86 | fp.Material="SmoothPlastic" | |
87 | fp:BreakJoints() | |
88 | return fp | |
89 | end | |
90 | ||
91 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
92 | local mesh=it(Mesh) | |
93 | mesh.Parent=part | |
94 | if Mesh=="SpecialMesh" then | |
95 | mesh.MeshType=meshtype | |
96 | if meshid~="nil" then | |
97 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
98 | end | |
99 | end | |
100 | mesh.Offset=offset | |
101 | mesh.Scale=scale | |
102 | return mesh | |
103 | end | |
104 | ||
105 | function weld(parent,part0,part1,c0) | |
106 | local weld=it("Weld") | |
107 | weld.Parent=parent | |
108 | weld.Part0=part0 | |
109 | weld.Part1=part1 | |
110 | weld.C0=c0 | |
111 | return weld | |
112 | end | |
113 | ||
114 | local Color1=Torso.BrickColor | |
115 | ||
116 | ||
117 | ||
118 | ||
119 | ||
120 | Player=game:GetService('Players').LocalPlayer | |
121 | Character=Player.Character | |
122 | Mouse=Player:GetMouse() | |
123 | m=Instance.new('Model',Character) | |
124 | ||
125 | ||
126 | local function weldBetween(a, b) | |
127 | local weldd = Instance.new("ManualWeld") | |
128 | weldd.Part0 = a | |
129 | weldd.Part1 = b | |
130 | weldd.C0 = CFrame.new() | |
131 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
132 | weldd.Parent = a | |
133 | return weldd | |
134 | end | |
135 | ||
136 | it=Instance.new | |
137 | ||
138 | function nooutline(part) | |
139 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
140 | end | |
141 | ||
142 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
143 | local fp=it("Part") | |
144 | fp.formFactor=formfactor | |
145 | fp.Parent=parent | |
146 | fp.Reflectance=reflectance | |
147 | fp.Transparency=transparency | |
148 | fp.CanCollide=false | |
149 | fp.Locked=true | |
150 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
151 | fp.Name=name | |
152 | fp.Size=size | |
153 | fp.Position=Character.Torso.Position | |
154 | nooutline(fp) | |
155 | fp.Material=material | |
156 | fp:BreakJoints() | |
157 | return fp | |
158 | end | |
159 | ||
160 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
161 | local mesh=it(Mesh) | |
162 | mesh.Parent=part | |
163 | if Mesh=="SpecialMesh" then | |
164 | mesh.MeshType=meshtype | |
165 | mesh.MeshId=meshid | |
166 | end | |
167 | mesh.Offset=offset | |
168 | mesh.Scale=scale | |
169 | return mesh | |
170 | end | |
171 | ||
172 | function weld(parent,part0,part1,c0,c1) | |
173 | local weld=it("Weld") | |
174 | weld.Parent=parent | |
175 | weld.Part0=part0 | |
176 | weld.Part1=part1 | |
177 | weld.C0=c0 | |
178 | weld.C1=c1 | |
179 | return weld | |
180 | end | |
181 | ||
182 | ||
183 | ||
184 | ||
185 | ||
186 | ||
187 | ||
188 | ||
189 | ||
190 | -------------------------------- | |
191 | local p = game.Players.LocalPlayer | |
192 | local char = p.Character | |
193 | local mouse = p:GetMouse() | |
194 | local larm = char["Left Arm"] | |
195 | local rarm = char["Right Arm"] | |
196 | local lleg = char["Left Leg"] | |
197 | local rleg = char["Right Leg"] | |
198 | local hed = char.Head | |
199 | local torso = char.Torso | |
200 | local hum = char.Humanoid | |
201 | local cam = game.Workspace.CurrentCamera | |
202 | local root = char.HumanoidRootPart | |
203 | local deb = false | |
204 | local shot = 0 | |
205 | local debris=game:service"Debris" | |
206 | local l = game:GetService("Lighting") | |
207 | local rs = game:GetService("RunService").RenderStepped | |
208 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
209 | math.randomseed(os.time()) | |
210 | for i,v in pairs(char:children()) do | |
211 | if v:IsA("Hat") then | |
212 | v:Destroy() | |
213 | end | |
214 | end | |
215 | for i,v in pairs (hed:GetChildren()) do | |
216 | if v:IsA("Sound") then | |
217 | v:Destroy() | |
218 | end | |
219 | end | |
220 | ||
221 | ----------------------------------------------------//Mesh setting | |
222 | local cmeshes = {} | |
223 | local ll,rl,la,ra,t = Instance.new('CharacterMesh',char),Instance.new('CharacterMesh',char),Instance.new('CharacterMesh',char),Instance.new('CharacterMesh',char),Instance.new('CharacterMesh',char) | |
224 | ll.BodyPart = 'LeftLeg' | |
225 | rl.BodyPart = 'RightLeg' | |
226 | la.BodyPart = 'LeftArm' | |
227 | ra.BodyPart = 'RightArm' | |
228 | t.BodyPart = 'Torso' | |
229 | ll.MeshId,ll.OverlayTextureId,rl.MeshId,rl.OverlayTextureId = 68241558,68241528,68241677,68241528 | |
230 | ra.MeshId,ra.OverlayTextureId,la.MeshId,la.OverlayTextureId = 68241658,68241528,68241543,68241528 | |
231 | t.MeshId,t.OverlayTextureId=101851389,101851254 | |
232 | ---------------------------------------------------- | |
233 | z = Instance.new("Sound", char) | |
234 | - | z.SoundId = "rbxassetid://551733159" -- Put Music ID Here. |
234 | + | z.SoundId = "rbxassetid://395394325" -- Put Music ID Here. |
235 | z.Looped = true | |
236 | z.Volume = 10 | |
237 | wait(.1) | |
238 | z:Play() | |
239 | ||
240 | ---------------------------------------------------- | |
241 | Sit = false | |
242 | mouse.KeyDown:connect(function(key) | |
243 | if key == "v" then | |
244 | if Sit == false then | |
245 | Sit = true | |
246 | hum.WalkSpeed = 20 | |
247 | stanceToggle = "Sitting" | |
248 | elseif Sit == true then | |
249 | Sit = false | |
250 | hum.WalkSpeed = 50 | |
251 | stanceToggle = "Normal" | |
252 | end | |
253 | end | |
254 | end) | |
255 | ---------------------------------------------------- | |
256 | Debounces = { | |
257 | CanAttack = true; | |
258 | NoIdl = false; | |
259 | Slashing = false; | |
260 | Slashed = false; | |
261 | RPunch = false; | |
262 | RPunched = false; | |
263 | LPunch = false; | |
264 | LPunched = false; | |
265 | } | |
266 | local Touche = {char.Name, } | |
267 | ---------------------------------------------------- | |
268 | ||
269 | mouse.KeyDown:connect(function(key) | |
270 | if key == "r" then | |
271 | larm.BrickColor = BrickColor.new("Bright red") | |
272 | rarm.BrickColor = BrickColor.new("Bright red") | |
273 | if Debounces.CanAttack == true then | |
274 | Debounces.CanAttack = false | |
275 | Debounces.on = true | |
276 | Debounces.NoIdl = true | |
277 | - | to = char.LeftArmPlate.Thingy.Touched:connect(function(ht) |
277 | + | to = char.RightArmPlate.Touched:connect(function(ht) |
278 | hit = ht.Parent | |
279 | if ht and hit:IsA("Model") then | |
280 | if hit:FindFirstChild("Humanoid") then | |
281 | if hit.Name ~= p.Name then | |
282 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
283 | Debounces.Slashed = true]]-- | |
284 | hit:FindFirstChild("Humanoid"):TakeDamage(99999999) | |
285 | wait(1) | |
286 | --Debounces.Slashed = false | |
287 | --end | |
288 | end | |
289 | end | |
290 | elseif ht and hit:IsA("Hat") then | |
291 | if hit.Parent.Name ~= p.Name then | |
292 | if hit.Parent:FindFirstChild("Humanoid") then | |
293 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
294 | Debounces.Slashed = true]]-- | |
295 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(99999999) | |
296 | wait(1) | |
297 | --Debounces.Slashed = false | |
298 | end | |
299 | end | |
300 | end | |
301 | end) | |
302 | q = Instance.new("Sound",hed) | |
303 | q.SoundId = "http://www.roblox.com/asset/?id=134012322" | |
304 | q.Pitch = 0.85 | |
305 | q.Looped = false | |
306 | q1 = Instance.new("Sound",hed) | |
307 | q1.SoundId = "http://www.roblox.com/asset/?id=134012322" | |
308 | q1.Pitch = 0.85 | |
309 | q1.Looped = false | |
310 | q:Play() | |
311 | q1:Play() | |
312 | for i = 1,20 do | |
313 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.4) | |
314 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.4) | |
315 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.4) | |
316 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 4, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.4) | |
317 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 1) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.4) | |
318 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.4) | |
319 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -2.2, -3) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(0)), 0.5) | |
320 | if Debounces.on == false then break end | |
321 | wait() | |
322 | end | |
323 | n = Instance.new("Sound",hed) | |
324 | n.SoundId = "http://www.roblox.com/asset/?id=168514932" | |
325 | n.Pitch = 0.94 | |
326 | n.Looped = false | |
327 | n1 = Instance.new("Sound",hed) | |
328 | n1.SoundId = "http://www.roblox.com/asset/?id=168514932" | |
329 | n1.Pitch = 0.94 | |
330 | n1.Looped = false | |
331 | n:Play() | |
332 | n1:Play() | |
333 | b = Instance.new("Sound",hed) | |
334 | b.SoundId = "http://www.roblox.com/asset/?id=168586586" | |
335 | b.Pitch = 0.94 | |
336 | b.Looped = false | |
337 | b1 = Instance.new("Sound",hed) | |
338 | b1.SoundId = "http://www.roblox.com/asset/?id=168586586" | |
339 | b1.Pitch = 0.94 | |
340 | b1.Looped = false | |
341 | b:Play() | |
342 | b1:Play() | |
343 | for i = 1,26 do | |
344 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.5) | |
345 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.5) | |
346 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),0.5) | |
347 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), 0), 0.5) | |
348 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -1) * CFrame.Angles(math.rad(50), 0, math.rad(0)), 0.5) | |
349 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .4) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.5) | |
350 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 0.5) | |
351 | if Debounces.on == false then break end | |
352 | wait() | |
353 | end | |
354 | wait(.5) | |
355 | to:disconnect() | |
356 | q:Destroy() | |
357 | q1:Destroy() | |
358 | n:Destroy() | |
359 | n1:Destroy() | |
360 | larm.BrickColor = BrickColor.new("Really black") | |
361 | rarm.BrickColor = BrickColor.new("Really black") | |
362 | if Debounces.CanAttack == false then | |
363 | Debounces.CanAttack = true | |
364 | Debounces.on = false | |
365 | Debounces.NoIdl = false | |
366 | end | |
367 | end | |
368 | end | |
369 | end) | |
370 | ---------------------------------------------------- | |
371 | hed.face.Texture = "rbxassetid://0" | |
372 | char["Body Colors"].HeadColor = BrickColor.new("Black") | |
373 | char["Body Colors"].TorsoColor = BrickColor.new("Black") | |
374 | char["Body Colors"].LeftArmColor = BrickColor.new("Black") | |
375 | char["Body Colors"].RightArmColor = BrickColor.new("Black") | |
376 | char["Body Colors"].LeftLegColor = BrickColor.new("Black") | |
377 | char["Body Colors"].RightLegColor = BrickColor.new("Black") | |
378 | ---------------------------------------------------- | |
379 | ypcall(function() | |
380 | shirt = Instance.new("Shirt", char) | |
381 | shirt.Name = "Shirt" | |
382 | pants = Instance.new("Pants", char) | |
383 | pants.Name = "Pants" | |
384 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=162860579" | |
385 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=532642815" | |
386 | end) | |
387 | ---------------------------------------------------- | |
388 | local LocalPlayer = game:GetService("Players").LocalPlayer | |
389 | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() | |
390 | ||
391 | Character.Head.Transparency = 0 | |
392 | ||
393 | local Orb = Instance.new("Part", Character) | |
394 | Orb.Name = "Orb" | |
395 | ||
396 | Orb.CanCollide = false | |
397 | Orb.BrickColor = BrickColor.new("Institutional white") | |
398 | Orb.Transparency = 0 | |
399 | Orb.Material = "Plastic" | |
400 | Orb.Size = Vector3.new(1, 1, 1) | |
401 | ||
402 | ||
403 | local M = Instance.new("SpecialMesh") | |
404 | M.Parent = Orb | |
405 | M.MeshId = "http://www.roblox.com/asset/?id=430411019" | |
406 | ||
407 | ||
408 | local Weld = Instance.new("Weld", Orb) | |
409 | Weld.Part0 = Character.Head | |
410 | Weld.Part1 = Orb | |
411 | Weld.C1 = CFrame.new(0, -0.5, 0) | |
412 | ------------------------------------------------------ | |
413 | CV="Institutional white" | |
414 | ||
415 | local txt = Instance.new("BillboardGui", char) | |
416 | txt.Adornee = char .Orb | |
417 | txt.Name = "_status" | |
418 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
419 | txt.StudsOffset = Vector3.new(-2, 1.5, 0) | |
420 | local text = Instance.new("TextLabel", txt) | |
421 | text.Size = UDim2.new(3, 0, 0.5, 0) | |
422 | text.FontSize = "Size8" | |
423 | text.TextScaled = true | |
424 | text.TextTransparency = 0 | |
425 | text.BackgroundTransparency = 1 | |
426 | text.TextTransparency = 0 | |
427 | text.TextStrokeTransparency = 0 | |
428 | text.Font = "Arial" | |
429 | text.TextStrokeColor3 = Color3.new(56,21,78) | |
430 | ||
431 | v=Instance.new("Part") | |
432 | v.Name = "ColorBrick" | |
433 | v.Parent=p.Character | |
434 | v.FormFactor="Symmetric" | |
435 | v.Anchored=true | |
436 | v.CanCollide=false | |
437 | v.BottomSurface="Smooth" | |
438 | v.TopSurface="Smooth" | |
439 | v.Size=Vector3.new(10,5,3) | |
440 | v.Transparency=0.7 | |
441 | v.CFrame=char.Torso.CFrame | |
442 | v.BrickColor=BrickColor.new(CV) | |
443 | v.Transparency=1 | |
444 | text.TextColor3 = v.BrickColor.Color | |
445 | v.Shape="Block" | |
446 | text.Text = "" | |
447 | ||
448 | ||
449 | ||
450 | ||
451 | -------------------------------------------------------- | |
452 | local Orbd = Instance.new("Part", Character) | |
453 | Orbd.Name = "Orbd" | |
454 | Orbd.Shape = Enum.PartType.Ball | |
455 | Orbd.CanCollide = false | |
456 | Orbd.BrickColor = BrickColor.new("Blue") | |
457 | Orbd.Transparency = 1 | |
458 | Orbd.Material = "Neon" | |
459 | Orbd.Size = Vector3.new(0.1, 0.1, 0.1) | |
460 | Orbd.TopSurface = Enum.SurfaceType.Smooth | |
461 | Orbd.BottomSurface = Enum.SurfaceType.Smooth | |
462 | ||
463 | local Weld = Instance.new("Weld", Orbd) | |
464 | Weld.Part0 = Character.Head | |
465 | Weld.Part1 = Orbd | |
466 | Weld.C1 = CFrame.new(-0.2, -0.2, 0.5) | |
467 | ||
468 | -------------------------------------------------------- | |
469 | local Orbvc = Instance.new("Part", Character) | |
470 | Orbvc.Name = "Orbvc" | |
471 | Orbvc.Shape = Enum.PartType.Ball | |
472 | Orbvc.CanCollide = false | |
473 | Orbvc.BrickColor = BrickColor.new("Blue") | |
474 | Orbvc.Transparency = 1 | |
475 | Orbvc.Material = "Neon" | |
476 | Orbvc.Size = Vector3.new(0.1, 0.1, 0.1) | |
477 | Orbvc.TopSurface = Enum.SurfaceType.Smooth | |
478 | Orbvc.BottomSurface = Enum.SurfaceType.Smooth | |
479 | ||
480 | local Weld = Instance.new("Weld", Orbvc) | |
481 | Weld.Part0 = Character.Head | |
482 | Weld.Part1 = Orbvc | |
483 | Weld.C1 = CFrame.new(0.2, -0.2, 0.5) | |
484 | --------------------- | |
485 | local LocalPlayer = game:GetService("Players").LocalPlayer | |
486 | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() | |
487 | ||
488 | Character.Head.Transparency = 0 | |
489 | ||
490 | local Camisa = Instance.new("Part", Character) | |
491 | Camisa.Name = "Camisa" | |
492 | ||
493 | Camisa.CanCollide = false | |
494 | Camisa.BrickColor = BrickColor.new("Institutional white") | |
495 | Camisa.Transparency = 1 | |
496 | Camisa.Material = "Plastic" | |
497 | Camisa.Size = Vector3.new(1.5, 1.5, 1) | |
498 | ||
499 | local Weld = Instance.new("Weld", Camisa) | |
500 | Weld.Part0 = Character.Torso | |
501 | Weld.Part1 = Camisa | |
502 | Weld.C1 = CFrame.new(0, 0, 0) | |
503 | ---------------------------------------- | |
504 | local p = game.Players.LocalPlayer | |
505 | local char = p.Character | |
506 | local mouse = p:GetMouse() | |
507 | local larm = char["Left Arm"] | |
508 | local rarm = char["Right Arm"] | |
509 | local lleg = char["Left Leg"] | |
510 | local rleg = char["Right Leg"] | |
511 | local hed = char.Head | |
512 | local torso = char.Torso | |
513 | local hum = char.Humanoid | |
514 | local cam = game.Workspace.CurrentCamera | |
515 | local root = char.HumanoidRootPart | |
516 | local rj = root.RootJoint | |
517 | local deb = false | |
518 | local shot = 0 | |
519 | local stanceToggle = "Idle1" | |
520 | local l = game:GetService("Lighting") | |
521 | local rs = game:GetService("RunService").RenderStepped | |
522 | local hb = game:GetService("RunService").Heartbeat | |
523 | local Stepped = game:GetService("RunService").Stepped | |
524 | math.randomseed(os.time()) | |
525 | hum.JumpPower = 200 | |
526 | ---------------------------------------------------- | |
527 | fat = Instance.new("BindableEvent",script) | |
528 | fat.Name = "Heartbeat" | |
529 | ||
530 | script:WaitForChild("Heartbeat") | |
531 | ||
532 | frame = 1/30 | |
533 | tf = 0 | |
534 | allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater. | |
535 | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. | |
536 | lastframe = tick() | |
537 | script.Heartbeat:Fire() --ayy lmao | |
538 | ||
539 | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp | |
540 | tf = tf + s | |
541 | if tf >= frame then | |
542 | if allowframeloss then | |
543 | script.Heartbeat:Fire() | |
544 | lastframe=tick() | |
545 | else | |
546 | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame)))) | |
547 | for i=1, math.floor(tf/frame) do | |
548 | script.Heartbeat:Fire() | |
549 | end | |
550 | lastframe=tick() | |
551 | end | |
552 | if tossremainder then | |
553 | tf = 0 | |
554 | else | |
555 | tf = tf - frame * math.floor(tf/frame) | |
556 | end | |
557 | end | |
558 | end) | |
559 | ---------------------------------------------------- | |
560 | for i,v in pairs(char:children()) do | |
561 | if v:IsA("Hat") then | |
562 | v:Destroy() | |
563 | end | |
564 | end | |
565 | for i,v in pairs (hed:GetChildren()) do | |
566 | if v:IsA("Sound") then | |
567 | v:Destroy() | |
568 | end | |
569 | end | |
570 | ---------------------------------------------------- | |
571 | Debounces = { | |
572 | CanAttack = true; | |
573 | CanJoke = false; | |
574 | NoIdl = false; | |
575 | Slashing = false; | |
576 | Slashed = false; | |
577 | ks = false; | |
578 | } | |
579 | ---------------------------------------------------- | |
580 | function weld5(part0, part1, c0, c1) | |
581 | weeld=Instance.new("Weld", part0) | |
582 | weeld.Part0=part0 | |
583 | weeld.Part1=part1 | |
584 | weeld.C0=c0 | |
585 | weeld.C1=c1 | |
586 | return weeld | |
587 | end | |
588 | ---------------------------------------------------- | |
589 | function NewPart(prnt,siz,cf,trans,anc,mat,col) | |
590 | local prt=Instance.new("Part") | |
591 | prt.Parent=prnt | |
592 | prt.Name="Part" | |
593 | prt.Size=siz | |
594 | prt.CanCollide=false | |
595 | prt.Anchored=anc | |
596 | prt.Locked=true | |
597 | prt.Transparency = trans | |
598 | prt.TopSurface=10 | |
599 | prt.BottomSurface=10 | |
600 | prt.FrontSurface=10 | |
601 | prt.BackSurface=10 | |
602 | prt.LeftSurface=10 | |
603 | prt.RightSurface=10 | |
604 | prt:BreakJoints() | |
605 | prt.CFrame=cf or CFrame.new(30,10,30) | |
606 | prt.Material=mat | |
607 | prt.BrickColor=BrickColor.new(col) | |
608 | m=Instance.new("SpecialMesh",prt) | |
609 | m.MeshType=6 | |
610 | return prt | |
611 | end | |
612 | ---------------------------------------------------- | |
613 | function lerp(a, b, t) -- Linear interpolation | |
614 | return a + (b - a)*t | |
615 | end | |
616 | ||
617 | function slerp(a, b, t) --Spherical interpolation | |
618 | dot = a:Dot(b) | |
619 | if dot > 0.99999 or dot < -0.99999 then | |
620 | return t <= 0.5 and a or b | |
621 | else | |
622 | r = math.acos(dot) | |
623 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
624 | end | |
625 | end | |
626 | ||
627 | function matrixInterpolate(a, b, t) | |
628 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
629 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
630 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
631 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
632 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
633 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
634 | local t = v1:Dot(v2) | |
635 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
636 | return CFrame.new() | |
637 | end | |
638 | return CFrame.new( | |
639 | v0.x, v0.y, v0.z, | |
640 | v1.x, v1.y, v1.z, | |
641 | v2.x, v2.y, v2.z, | |
642 | v3.x, v3.y, v3.z) | |
643 | end | |
644 | ---------------------------------------------------- | |
645 | function genWeld(a,b) | |
646 | local w = Instance.new("Weld",a) | |
647 | w.Part0 = a | |
648 | w.Part1 = b | |
649 | return w | |
650 | end | |
651 | function weld(a, b) | |
652 | local weld = Instance.new("Weld") | |
653 | weld.Name = "W" | |
654 | weld.Part0 = a | |
655 | weld.Part1 = b | |
656 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
657 | weld.Parent = a | |
658 | return weld; | |
659 | end | |
660 | ---------------------------------------------------- | |
661 | function Lerp(c1,c2,al) | |
662 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
663 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
664 | for i,v in pairs(com1) do | |
665 | com1[i] = v+(com2[i]-v)*al | |
666 | end | |
667 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
668 | end | |
669 | ---------------------------------------------------- | |
670 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
671 | local wld = Instance.new("Weld", wp1) | |
672 | wld.Part0 = wp0 | |
673 | wld.Part1 = wp1 | |
674 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
675 | end | |
676 | ---------------------------------------------------- | |
677 | newWeld(torso, larm, -1.5, 0.5, 0) | |
678 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
679 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
680 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
681 | newWeld(torso, hed, 0, 1.5, 0) | |
682 | newWeld(torso, lleg, -0.5, -1, 0) | |
683 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
684 | newWeld(torso, rleg, 0.5, -1, 0) | |
685 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
686 | newWeld(root, torso, 0, -1, 0) | |
687 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
688 | ---------------------------------------------------- | |
689 | z = Instance.new("Sound",char) --Smile: print("â?º") | |
690 | z.SoundId = "rbxassetid://0"--410761150, 411368002 | |
691 | z.Looped = true | |
692 | z.Pitch = 1 | |
693 | z.Volume = 1 | |
694 | wait(0.1) | |
695 | z:Play() | |
696 | ---------------------------------------------------- | |
697 | New = function(Object, Parent, Name, Data) | |
698 | local Object = Instance.new(Object) | |
699 | for Index, Value in pairs(Data or {}) do | |
700 | Object[Index] = Value | |
701 | end | |
702 | Object.Parent = Parent | |
703 | Object.Name = Name | |
704 | return Object | |
705 | end | |
706 | ---------------------------------------------------- | |
707 | --Left Arm | |
708 | m = Instance.new("Model") | |
709 | m.Name = "LeftArm" | |
710 | ||
711 | p4 = Instance.new("Part", m) | |
712 | p4.BrickColor = BrickColor.new("Really black") | |
713 | p4.Material = Enum.Material.SmoothPlastic | |
714 | p4.Name = "LeftArmPlate" | |
715 | p4.Size = Vector3.new(1, 2, 1) | |
716 | p4.Transparency = 1 | |
717 | p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
718 | p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
719 | p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
720 | p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
721 | p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
722 | p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
723 | b4 = Instance.new("SpecialMesh", p4) | |
724 | b4.MeshType = Enum.MeshType.Brick | |
725 | b4.Name = "Mesh" | |
726 | b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998) | |
727 | ||
728 | ||
729 | ||
730 | ||
731 | ||
732 | w1 = Instance.new("Weld", p1) | |
733 | w1.Name = "Part_Weld" | |
734 | w1.Part0 = p1 | |
735 | w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
736 | w1.Part1 = p2 | |
737 | w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
738 | w2 = Instance.new("Weld", p2) | |
739 | w2.Name = "Part_Weld" | |
740 | w2.Part0 = p2 | |
741 | w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
742 | w2.Part1 = p3 | |
743 | w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
744 | w3 = Instance.new("Weld", p3) | |
745 | w3.Name = "LeftArmPlate_Weld" | |
746 | w3.Part0 = p3 | |
747 | w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
748 | w3.Part1 = p4 | |
749 | w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
750 | w4 = Instance.new("Weld", p4) | |
751 | w4.Name = "Part_Weld" | |
752 | w4.Part0 = p4 | |
753 | w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
754 | w4.Part1 = p5 | |
755 | w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
756 | w5 = Instance.new("Weld", p5) | |
757 | w5.Name = "Part_Weld" | |
758 | w5.Part0 = p5 | |
759 | w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
760 | w5.Part1 = p6 | |
761 | w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
762 | w6 = Instance.new("Weld", p6) | |
763 | w6.Name = "Part_Weld" | |
764 | w6.Part0 = p6 | |
765 | w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
766 | w6.Part1 = p7 | |
767 | w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
768 | w7 = Instance.new("Weld", p7) | |
769 | w7.Name = "Part_Weld" | |
770 | w7.Part0 = p7 | |
771 | w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
772 | w7.Part1 = p8 | |
773 | w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
774 | w8 = Instance.new("Weld", p8) | |
775 | w8.Name = "Part_Weld" | |
776 | w8.Part0 = p8 | |
777 | w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
778 | w8.Part1 = p9 | |
779 | w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
780 | w9 = Instance.new("Weld", p9) | |
781 | w9.Name = "Part_Weld" | |
782 | w9.Part0 = p9 | |
783 | w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
784 | w9.Part1 = p10 | |
785 | w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
786 | w10 = Instance.new("Weld", p10) | |
787 | w10.Name = "Part_Weld" | |
788 | w10.Part0 = p10 | |
789 | w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
790 | w10.Part1 = p11 | |
791 | w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
792 | w11 = Instance.new("Weld", p11) | |
793 | w11.Name = "Part_Weld" | |
794 | w11.Part0 = p11 | |
795 | w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
796 | w11.Part1 = p12 | |
797 | w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
798 | w12 = Instance.new("Weld", p12) | |
799 | w12.Name = "Part_Weld" | |
800 | w12.Part0 = p12 | |
801 | w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
802 | w12.Part1 = p13 | |
803 | w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
804 | w13 = Instance.new("Weld", p13) | |
805 | w13.Name = "Part_Weld" | |
806 | w13.Part0 = p13 | |
807 | w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
808 | w13.Part1 = p14 | |
809 | w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
810 | w14 = Instance.new("Weld", p14) | |
811 | w14.Name = "Part_Weld" | |
812 | w14.Part0 = p14 | |
813 | w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
814 | w14.Part1 = p15 | |
815 | w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
816 | w15 = Instance.new("Weld", p15) | |
817 | w15.Name = "Part_Weld" | |
818 | w15.Part0 = p15 | |
819 | w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
820 | w15.Part1 = p16 | |
821 | w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5) | |
822 | ||
823 | m.Parent = larm | |
824 | m:MakeJoints() | |
825 | ---------------------------------------------------- | |
826 | local cor = Instance.new("Part", larm.LeftArm) | |
827 | cor.Name = "Thingy" | |
828 | cor.Locked = true | |
829 | cor.BottomSurface = 0 | |
830 | cor.CanCollide = false | |
831 | cor.Size = Vector3.new(1, 1, 1) | |
832 | cor.Transparency = 1 | |
833 | cor.TopSurface = 0 | |
834 | corw = Instance.new("Weld", cor) | |
835 | corw.Part0 = larm | |
836 | corw.Part1 = cor | |
837 | corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
838 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
839 | weld1 = Instance.new("Weld", larm.LeftArm) | |
840 | weld1.Part0 = cor | |
841 | weld1.Part1 = larm.LeftArm.LeftArmPlate | |
842 | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
843 | --Right Arm | |
844 | m2 = Instance.new("Model") | |
845 | m2.Name = "RightArm" | |
846 | ||
847 | p7 = Instance.new("Part", m2) | |
848 | p7.BrickColor = BrickColor.new("Institutional white") | |
849 | p7.Material = Enum.Material.SmoothPlastic | |
850 | p7.Transparency = 1 | |
851 | p7.Name = "RightArmPlate" | |
852 | p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
853 | p7.FormFactor = Enum.FormFactor.Symmetric | |
854 | p7.Size = Vector3.new(1, 2, 1) | |
855 | p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
856 | p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
857 | p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
858 | p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
859 | p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
860 | p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
861 | b7 = Instance.new("SpecialMesh", p7) | |
862 | b7.MeshType = Enum.MeshType.Brick | |
863 | b7.Name = "Mesh" | |
864 | b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998) | |
865 | ||
866 | ||
867 | w1 = Instance.new("Weld", p1) | |
868 | w1.Name = "Part_Weld" | |
869 | w1.Part0 = p1 | |
870 | w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
871 | w1.Part1 = p2 | |
872 | w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
873 | w2 = Instance.new("Weld", p2) | |
874 | w2.Name = "Part_Weld" | |
875 | w2.Part0 = p2 | |
876 | w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
877 | w2.Part1 = p3 | |
878 | w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
879 | w3 = Instance.new("Weld", p3) | |
880 | w3.Name = "Part_Weld" | |
881 | w3.Part0 = p3 | |
882 | w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
883 | w3.Part1 = p4 | |
884 | w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
885 | w4 = Instance.new("Weld", p4) | |
886 | w4.Name = "Part_Weld" | |
887 | w4.Part0 = p4 | |
888 | w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
889 | w4.Part1 = p5 | |
890 | w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
891 | w5 = Instance.new("Weld", p5) | |
892 | w5.Name = "Part_Weld" | |
893 | w5.Part0 = p5 | |
894 | w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
895 | w5.Part1 = p6 | |
896 | w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
897 | w6 = Instance.new("Weld", p6) | |
898 | w6.Name = "RightArmPlate_Weld" | |
899 | w6.Part0 = p6 | |
900 | w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
901 | w6.Part1 = p7 | |
902 | w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
903 | w7 = Instance.new("Weld", p7) | |
904 | w7.Name = "Part_Weld" | |
905 | w7.Part0 = p7 | |
906 | w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
907 | w7.Part1 = p8 | |
908 | w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
909 | w8 = Instance.new("Weld", p8) | |
910 | w8.Name = "Part_Weld" | |
911 | w8.Part0 = p8 | |
912 | w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
913 | w8.Part1 = p9 | |
914 | w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
915 | w9 = Instance.new("Weld", p9) | |
916 | w9.Name = "Part_Weld" | |
917 | w9.Part0 = p9 | |
918 | w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
919 | w9.Part1 = p10 | |
920 | w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
921 | w10 = Instance.new("Weld", p10) | |
922 | w10.Name = "Part_Weld" | |
923 | w10.Part0 = p10 | |
924 | w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
925 | w10.Part1 = p11 | |
926 | w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
927 | w11 = Instance.new("Weld", p11) | |
928 | w11.Name = "Part_Weld" | |
929 | w11.Part0 = p11 | |
930 | w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
931 | w11.Part1 = p12 | |
932 | w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
933 | w12 = Instance.new("Weld", p12) | |
934 | w12.Name = "Part_Weld" | |
935 | w12.Part0 = p12 | |
936 | w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
937 | w12.Part1 = p13 | |
938 | w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
939 | w13 = Instance.new("Weld", p13) | |
940 | w13.Name = "Part_Weld" | |
941 | w13.Part0 = p13 | |
942 | w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
943 | w13.Part1 = p14 | |
944 | w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
945 | w14 = Instance.new("Weld", p14) | |
946 | w14.Name = "Part_Weld" | |
947 | w14.Part0 = p14 | |
948 | w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
949 | w14.Part1 = p15 | |
950 | w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
951 | w15 = Instance.new("Weld", p15) | |
952 | w15.Name = "Part_Weld" | |
953 | w15.Part0 = p15 | |
954 | w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
955 | w15.Part1 = p16 | |
956 | w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
957 | w16 = Instance.new("Weld", p16) | |
958 | w16.Name = "Part_Weld" | |
959 | w16.Part0 = p16 | |
960 | w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
961 | w16.Part1 = p17 | |
962 | w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
963 | w17 = Instance.new("Weld", p17) | |
964 | w17.Name = "Part_Weld" | |
965 | w17.Part0 = p17 | |
966 | w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
967 | w17.Part1 = p18 | |
968 | w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
969 | w18 = Instance.new("Weld", p18) | |
970 | w18.Name = "Part_Weld" | |
971 | w18.Part0 = p18 | |
972 | w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
973 | w18.Part1 = p19 | |
974 | w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
975 | m2.Parent = rarm | |
976 | m2:MakeJoints() | |
977 | ---------------------------------------------------- | |
978 | local cor2 = Instance.new("Part", rarm.RightArm) | |
979 | cor2.Name = "Thingy" | |
980 | cor2.Locked = true | |
981 | cor2.BottomSurface = 0 | |
982 | cor2.CanCollide = false | |
983 | cor2.Size = Vector3.new(1, 1, 1) | |
984 | cor2.Transparency = 1 | |
985 | cor2.TopSurface = 0 | |
986 | corw2 = Instance.new("Weld", cor2) | |
987 | corw2.Part0 = rarm | |
988 | corw2.Part1 = cor2 | |
989 | corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
990 | corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
991 | weld2 = Instance.new("Weld", rarm.RightArm) | |
992 | weld2.Part0 = cor2 | |
993 | weld2.Part1 = rarm.RightArm.RightArmPlate | |
994 | weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
995 | ||
996 | ||
997 | --Zyrodoxa | |
998 | m8 = Instance.new("Model") | |
999 | m8.Name = "Zyrodoxa" | |
1000 | ||
1001 | p16 = Instance.new("Part", m8) | |
1002 | p16.BrickColor = BrickColor.new("Instutional white") | |
1003 | p16.Material = Enum.Material.Metal | |
1004 | p16.Name = "Handle" | |
1005 | p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007) | |
1006 | p16.CanCollide = false | |
1007 | p16.Locked = true | |
1008 | p16.FormFactor = Enum.FormFactor.Custom | |
1009 | p16.Size = Vector3.new(0, 0, 0) | |
1010 | p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1011 | p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1012 | p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1013 | p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1014 | p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1015 | p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1016 | b16 = Instance.new("BlockMesh", p16) | |
1017 | b16.Name = "Mesh" | |
1018 | b16.Scale = Vector3.new(0, 0, 0) | |
1019 | ||
1020 | w16 = Instance.new("Weld", p16) | |
1021 | w16.Name = "Block_Weld" | |
1022 | w16.Part0 = p16 | |
1023 | w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015) | |
1024 | w16.Part1 = p17 | |
1025 | w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1) | |
1026 | ||
1027 | m8.Parent = rarm | |
1028 | m8:MakeJoints() | |
1029 | ---------------------------------------------------- | |
1030 | local cor8 = Instance.new("Part", rarm.Zyrodoxa) | |
1031 | cor8.Name = "Thingy" | |
1032 | cor8.Locked = true | |
1033 | cor8.BottomSurface = 0 | |
1034 | cor8.CanCollide = false | |
1035 | cor8.Size = Vector3.new(1, 1, 1) | |
1036 | cor8.Transparency = 1 | |
1037 | cor8.TopSurface = 0 | |
1038 | corw8 = Instance.new("Weld", cor8) | |
1039 | corw8.Part0 = rarm | |
1040 | corw8.Part1 = cor8 | |
1041 | corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)) | |
1042 | corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1043 | weld8 = Instance.new("Weld", rarm.Zyrodoxa) | |
1044 | weld8.Part0 = cor8 | |
1045 | weld8.Part1 = rarm.Zyrodoxa.Handle | |
1046 | weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1047 | ---------------------------------------------------- | |
1048 | models = {m,m2,m3,m4,m5,m6,m7,m8} | |
1049 | parts = {} | |
1050 | Stepped:connect(function() | |
1051 | for i,v in pairs(models) do | |
1052 | for _, a in pairs(v:GetChildren()) do | |
1053 | if v:IsA("Part") and v.Name ~= "Thingy" then | |
1054 | table.insert(parts, a) | |
1055 | for i,v in pairs(parts) do | |
1056 | v.CanCollide = false | |
1057 | end | |
1058 | end | |
1059 | end | |
1060 | end | |
1061 | end) | |
1062 | ---------------------------------------------------- | |
1063 | local animpose = "Idle3" | |
1064 | local lastanimpose = "Idle1" | |
1065 | local grab = false | |
1066 | local Smooth = 1 | |
1067 | local sine = 0 | |
1068 | local change = 1 | |
1069 | local val = 0 | |
1070 | local ffing = true | |
1071 | ---------------------------------------------------- | |
1072 | --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k | |
1073 | ||
1074 | function FindHumanoids() | |
1075 | local function c_region(Position, Size) | |
1076 | local SizeOffset = Size/2 | |
1077 | local Point1 = Position - SizeOffset | |
1078 | local Point2 = Position + SizeOffset | |
1079 | local a = Instance.new("Part", workspace) | |
1080 | a.Anchored = true | |
1081 | a.Size = Size | |
1082 | a.Position = Position | |
1083 | print("Hey!, I'm making a part!") | |
1084 | return Region3.new(Point1, Point2) | |
1085 | end | |
1086 | ||
1087 | local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
1088 | local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
1089 | local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
1090 | local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
1091 | ||
1092 | local regions = {a, b, c, d} | |
1093 | ||
1094 | local found_humanoids = {} | |
1095 | local already_found = {char.Name} | |
1096 | ||
1097 | for _, region in pairs(regions) do | |
1098 | for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do | |
1099 | print(part, part.Parent, part.Name) ---nope | |
1100 | if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then | |
1101 | local humanoid = part.Parent:FindFirstChild("Humanoid") | |
1102 | local name = humanoid.Parent.Name | |
1103 | local exists = false | |
1104 | for _, n in pairs(already_found) do | |
1105 | if n == name then | |
1106 | exists = true | |
1107 | end | |
1108 | end | |
1109 | if not exists then | |
1110 | table.insert(already_found, name) | |
1111 | table.insert(found_humanoids, humanoid) | |
1112 | end | |
1113 | elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then | |
1114 | local humanoid = part.Parent.Parent:FindFirstChild("Humanoid") | |
1115 | local name = humanoid.Parent.Parent.Name | |
1116 | local exists = false | |
1117 | for _, n in pairs(already_found) do | |
1118 | if n == name then | |
1119 | exists = true | |
1120 | end | |
1121 | end | |
1122 | if not exists then | |
1123 | table.insert(already_found, name) | |
1124 | table.insert(found_humanoids, humanoid) | |
1125 | end | |
1126 | end | |
1127 | end | |
1128 | end | |
1129 | return found_humanoids | |
1130 | end | |
1131 | ||
1132 | local humanoids = FindHumanoids() | |
1133 | if #humanoids == 0 then | |
1134 | for i, v in pairs(humanoids) do | |
1135 | print(v.Parent.Name) | |
1136 | if Debounces.Slashing == true then | |
1137 | v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage? | |
1138 | elseif Debounces.Slashing == false then | |
1139 | wait() | |
1140 | end | |
1141 | end | |
1142 | wait(0.3) | |
1143 | end]]-- | |
1144 | ---------------------------------------------------- | |
1145 | --[[mouse.KeyDown:connect(function(key) | |
1146 | if key == "f" then | |
1147 | if Debounces.CanAttack == true then | |
1148 | Debounces.CanAttack = false | |
1149 | Debounces.NoIdl = true | |
1150 | Debounces.on = true | |
1151 | for i = 1, 20 do | |
1152 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1153 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1154 | CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1) | |
1155 | CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
1156 | CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
1157 | CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
1158 | CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
1159 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8) | |
1160 | 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.5) | |
1161 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8) | |
1162 | 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) | |
1163 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5) | |
1164 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5) | |
1165 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1) | |
1166 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1) | |
1167 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1) | |
1168 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1) | |
1169 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1) | |
1170 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1) | |
1171 | if Debounces.on == false then | |
1172 | break | |
1173 | end | |
1174 | fat.Event:wait() | |
1175 | end | |
1176 | end | |
1177 | end | |
1178 | end)]]-- | |
1179 | ---------------------------------------------------- | |
1180 | mod4 = Instance.new("Model",char) | |
1181 | ||
1182 | ptez = {0.7, 0.8, 0.9, 1} | |
1183 | ||
1184 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1185 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1186 | local List = {} | |
1187 | for i,v in pairs(workspace:GetChildren())do | |
1188 | if v:IsA("Model")then | |
1189 | if v:findFirstChild("Torso")then | |
1190 | if v ~= char then | |
1191 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1192 | table.insert(List,v) | |
1193 | end | |
1194 | end | |
1195 | end | |
1196 | end | |
1197 | end | |
1198 | return List | |
1199 | end | |
1200 | ||
1201 | function Slam() | |
1202 | local part=Instance.new('Part',mod4) | |
1203 | part.Anchored=true | |
1204 | part.CanCollide=false | |
1205 | part.FormFactor='Custom' | |
1206 | part.Size=Vector3.new(.2,.2,.2) | |
1207 | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) | |
1208 | part.Transparency=.7 | |
1209 | part.BrickColor=BrickColor.new('Really black') | |
1210 | mesh=Instance.new('SpecialMesh',part) | |
1211 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
1212 | mesh.Scale=Vector3.new(5,90,5) | |
1213 | local part2=Instance.new('Part',mod4) | |
1214 | part2.Anchored=true | |
1215 | part2.CanCollide=false | |
1216 | part2.FormFactor='Custom' | |
1217 | part2.Size=Vector3.new(.2,.2,.2) | |
1218 | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) | |
1219 | part2.Transparency=.7 | |
1220 | part2.BrickColor=BrickColor.new('Institutional white') | |
1221 | mesh2=Instance.new('SpecialMesh',part2) | |
1222 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1223 | mesh2.Scale=Vector3.new(3,30,3) | |
1224 | x = Instance.new("Sound",char) | |
1225 | x.SoundId = "http://www.roblox.com/asset/?id=133680244" | |
1226 | x.Pitch = ptez[math.random(1,#ptez)] | |
1227 | x.Volume = 10 | |
1228 | wait(.1) | |
1229 | x1 = Instance.new("Sound",char) | |
1230 | x1.SoundId = "http://www.roblox.com/asset/?id=130779009" | |
1231 | x1.Pitch = ptez[math.random(1,#ptez)] | |
1232 | x1.Volume = 9 | |
1233 | wait(.1) | |
1234 | x:Play() | |
1235 | x1:Play() | |
1236 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
1237 | if v:FindFirstChild('Humanoid') then | |
1238 | v.Humanoid:TakeDamage(math.random(9999999,9999999)) | |
1239 | end | |
1240 | end | |
1241 | coroutine.resume(coroutine.create(function() | |
1242 | for i=0,0.62,0.13 do | |
1243 | wait() | |
1244 | part.CFrame=part.CFrame | |
1245 | part.Transparency=i | |
1246 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
1247 | part2.CFrame=part2.CFrame | |
1248 | part2.Transparency=i | |
1249 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
1250 | end | |
1251 | part.Parent=nil | |
1252 | part2.Parent=nil | |
1253 | x:Destroy() | |
1254 | end)) | |
1255 | end | |
1256 | ---------------------------------------------------- | |
1257 | wPart = function(x,y,z,color,tr,cc,an,parent) | |
1258 | local wp = Instance.new('WedgePart',parent or Weapon) | |
1259 | wp.formFactor = 'Custom' | |
1260 | wp.Size = Vector3.new(x,y,z) | |
1261 | wp.BrickColor = BrickColor.new(color) | |
1262 | wp.CanCollide = cc | |
1263 | wp.Transparency = tr | |
1264 | wp.Anchored = an | |
1265 | wp.TopSurface,wp.BottomSurface = 0,0 | |
1266 | return wp | |
1267 | end | |
1268 | ||
1269 | Mesh = function(par,num,x,y,z) | |
1270 | local msh = _ | |
1271 | if num == 1 then | |
1272 | msh = Instance.new("CylinderMesh",par) | |
1273 | elseif num == 2 then | |
1274 | msh = Instance.new("SpecialMesh",par) | |
1275 | msh.MeshType = 3 | |
1276 | elseif num == 3 then | |
1277 | msh = Instance.new("BlockMesh",par) | |
1278 | elseif num == 4 then | |
1279 | msh = Instance.new("SpecialMesh",par) | |
1280 | msh.MeshType = "Torso" | |
1281 | elseif type(num) == 'string' then | |
1282 | msh = Instance.new("SpecialMesh",par) | |
1283 | msh.MeshId = num | |
1284 | end | |
1285 | msh.Scale = Vector3.new(x,y,z) | |
1286 | return msh | |
1287 | end | |
1288 | ||
1289 | local function CFrameFromTopBack(at, top, back) | |
1290 | local right = top:Cross(back) | |
1291 | return CFrame.new(at.x, at.y, at.z, | |
1292 | right.x, top.x, back.x, | |
1293 | right.y, top.y, back.y, | |
1294 | right.z, top.z, back.z) | |
1295 | end | |
1296 | ||
1297 | function Triangle(a, b, c) | |
1298 | local edg1 = (c-a):Dot((b-a).unit) | |
1299 | local edg2 = (a-b):Dot((c-b).unit) | |
1300 | local edg3 = (b-c):Dot((a-c).unit) | |
1301 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1302 | a, b, c = a, b, c | |
1303 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1304 | a, b, c = b, c, a | |
1305 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1306 | a, b, c = c, a, b | |
1307 | else | |
1308 | print("unreachable") | |
1309 | end | |
1310 | local len1 = (c-a):Dot((b-a).unit) | |
1311 | local len2 = (b-a).magnitude - len1 | |
1312 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1313 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1314 | local list = {} | |
1315 | if len1 > 0.01 then | |
1316 | local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char) | |
1317 | local sz = Vector3.new(0.2, width, len1) | |
1318 | w1.Size = sz | |
1319 | local sp = Mesh(w1,2,0,0,0) | |
1320 | sp.MeshType='Wedge' | |
1321 | sp.Scale=Vector3.new(0,1,1)*sz/w1.Size | |
1322 | w1:BreakJoints() | |
1323 | w1.Anchored = true | |
1324 | w1.Transparency = 0.7 | |
1325 | Spawn(function() | |
1326 | for i=0,1,0.1 do | |
1327 | fat.Event:wait() | |
1328 | w1.Transparency=w1.Transparency+0.03 | |
1329 | end | |
1330 | end) | |
1331 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1332 | table.insert(list,w1) | |
1333 | end | |
1334 | if len2 > 0.01 then | |
1335 | local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char) | |
1336 | local sz = Vector3.new(0.2, width, len2) | |
1337 | w2.Size = sz | |
1338 | local sp = Mesh(w2,2,0,0,0) | |
1339 | sp.MeshType='Wedge' | |
1340 | sp.Scale=Vector3.new(0,1,1)*sz/w2.Size | |
1341 | w2:BreakJoints() | |
1342 | w2.Anchored = true | |
1343 | w2.Transparency = 0.7 | |
1344 | Spawn(function() | |
1345 | for i=0,1,0.1 do | |
1346 | fat.Event:wait() | |
1347 | w2.Transparency=w2.Transparency+0.03 | |
1348 | end | |
1349 | end) | |
1350 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1351 | table.insert(list,w2) | |
1352 | end | |
1353 | return unpack(list) | |
1354 | end | |
1355 | ||
1356 | function trail(p,t,h) | |
1357 | Spawn(function() | |
1358 | local blcf = p.CFrame | |
1359 | local scfr = blcf | |
1360 | for i=1,t do | |
1361 | local blcf = p.CFrame | |
1362 | if scfr and (p.Position-scfr.p).magnitude > .1 then | |
1363 | 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) | |
1364 | if a then game.Debris:AddItem(a,1) end | |
1365 | if b then game.Debris:AddItem(b,1) end | |
1366 | 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) | |
1367 | if a then game.Debris:AddItem(a,1) end | |
1368 | if b then game.Debris:AddItem(b,1) end | |
1369 | scfr = blcf | |
1370 | elseif not scfr then | |
1371 | scfr = blcf | |
1372 | end | |
1373 | fat.Event:wait() | |
1374 | end | |
1375 | scfr=nil | |
1376 | end) | |
1377 | end | |
1378 | --trail(char.Sword.Blade,1e1000,5) | |
1379 | ---------------------------------------------------- | |
1380 | function Dmg() | |
1381 | local partofdeath = rarm.Zyrodoxa.Hitbox | |
1382 | local function CreateRegion3FromLocAndSize(Position, Size) | |
1383 | local SizeOffset = Size/2 | |
1384 | local Point1 = Position - SizeOffset | |
1385 | local Point2 = Position + SizeOffset | |
1386 | return Region3.new(Point1, Point2) | |
1387 | end | |
1388 | local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size) | |
1389 | for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do | |
1390 | Spawn(function() | |
1391 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
1392 | Debounces.Slashed = true | |
1393 | ypcall(function() | |
1394 | local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid") | |
1395 | humanoid:TakeDamage(math.random(10,18)) | |
1396 | end) | |
1397 | wait(.4) | |
1398 | Debounces.Slashed = false | |
1399 | end | |
1400 | end) | |
1401 | end | |
1402 | end | |
1403 | ---------------------------------------------------- | |
1404 | pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
1405 | ptz = {0.7, 0.8, 0.9, 1} | |
1406 | idz = {"161006212", "161006195"} | |
1407 | function attackone() | |
1408 | for i = 1, 13 do | |
1409 | corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8) | |
1410 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8) | |
1411 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3) | |
1412 | 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.3) | |
1413 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5) | |
1414 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5) | |
1415 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5) | |
1416 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5) | |
1417 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7) | |
1418 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7) | |
1419 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5) | |
1420 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5) | |
1421 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5) | |
1422 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5) | |
1423 | if Debounces.on == false then | |
1424 | break | |
1425 | end | |
1426 | fat.Event:wait() | |
1427 | end | |
1428 | trail(rarm.Zyrodoxa.Hitbox,20,2) | |
1429 | Debounces.Slashing = true | |
1430 | wait(0.2) | |
1431 | --[[z = Instance.new("Sound", hed) | |
1432 | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1433 | z.Pitch = ptz[math.random(1,#ptz)] | |
1434 | z.Volume = 1 | |
1435 | wait(.01) | |
1436 | z:Play()]]-- | |
1437 | for i = 1, 14 do | |
1438 | Dmg() | |
1439 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8) | |
1440 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8) | |
1441 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4) | |
1442 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4) | |
1443 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4) | |
1444 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4) | |
1445 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7) | |
1446 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) | |
1447 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4) | |
1448 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1449 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5) | |
1450 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5) | |
1451 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5) | |
1452 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5) | |
1453 | if Debounces.on == false then break end | |
1454 | rs:wait() | |
1455 | end | |
1456 | Debounces.Slashing = false | |
1457 | end | |
1458 | function attacktwo() | |
1459 | Debounces.Slashing = true | |
1460 | for i = 1, 14 do | |
1461 | Dmg() | |
1462 | corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4) | |
1463 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4) | |
1464 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7) | |
1465 | 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) | |
1466 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5) | |
1467 | 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.4) | |
1468 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5) | |
1469 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) | |
1470 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5) | |
1471 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1472 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5) | |
1473 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
1474 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5) | |
1475 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
1476 | if Debounces.on == false then | |
1477 | break | |
1478 | end | |
1479 | rs:wait() | |
1480 | end | |
1481 | end | |
1482 | ---------------------------------------------------- | |
1483 | ||
1484 | ---------------------------------------------------- | |
1485 | definition = 5 | |
1486 | bc = {} | |
1487 | bezierparts = {} | |
1488 | function NoOutline(Part) | |
1489 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1490 | end | |
1491 | function draw(p,d) | |
1492 | for i=1,d do | |
1493 | local t = i/d | |
1494 | bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2 | |
1495 | end | |
1496 | ||
1497 | Spawn(function() fat.Event:wait() | |
1498 | for i,v in pairs(bezierparts) do | |
1499 | v.Transparency = 1 | |
1500 | end | |
1501 | end) | |
1502 | end | |
1503 | --local points = {larm.Position,rarn.Position,invisipart.Position} | |
1504 | --draw(points,definition) | |
1505 | ||
1506 | fat.Event:wait() | |
1507 | ||
1508 | rpart = Instance.new("Part",rarm) | |
1509 | NoOutline(rpart) | |
1510 | rpart.Anchored = false | |
1511 | rpart.Size = Vector3.new(1,1,1) | |
1512 | rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
1513 | rpart.Transparency = 1 | |
1514 | newWeld(rarm, rpart, 0, 0, 0) | |
1515 | rpart.Weld.C1 = CFrame.new(0, 1.1, 0) | |
1516 | lpart = Instance.new("Part",larm) | |
1517 | NoOutline(lpart) | |
1518 | lpart.Anchored = false | |
1519 | lpart.Size = Vector3.new(1,1,1) | |
1520 | lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
1521 | lpart.Transparency = 1 | |
1522 | newWeld(larm, lpart, 0, 0, 0) | |
1523 | lpart.Weld.C1 = CFrame.new(0, 1.1, 0) | |
1524 | invisipart = Instance.new("Part",torso) | |
1525 | NoOutline(invisipart) | |
1526 | invisipart.Anchored = false | |
1527 | invisipart.Size = Vector3.new(1,1,1) | |
1528 | invisipart.Transparency = 1 | |
1529 | invisipart.CFrame = torso.CFrame | |
1530 | newWeld(torso, invisipart, 0, 0, 0) | |
1531 | invisipart.Weld.C1 = CFrame.new(0, 0, 6) | |
1532 | table.insert(bezierparts, rpart) | |
1533 | table.insert(bezierparts, lpart) | |
1534 | table.insert(bezierparts, invisipart) | |
1535 | for i = 1, 40 do | |
1536 | local points = {lpart.Position,invisipart.Position,rpart.Position} | |
1537 | draw(points,definition) | |
1538 | --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6) | |
1539 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1) | |
1540 | 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) | |
1541 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1) | |
1542 | 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) | |
1543 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2) | |
1544 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) | |
1545 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1546 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1547 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2) | |
1548 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
1549 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2) | |
1550 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
1551 | if Debounces.on == false then | |
1552 | break | |
1553 | end | |
1554 | fat.Event:wait() | |
1555 | end | |
1556 | for i,v in pairs(bezierparts) do | |
1557 | v:Destroy() | |
1558 | end | |
1559 | --draw(points,definition) | |
1560 | if Debounces.CanAttack == false then | |
1561 | Debounces.CanAttack = true | |
1562 | Debounces.NoIdl = false | |
1563 | Debounces.on = false | |
1564 | end | |
1565 | ||
1566 | ---------------------------------------------------- | |
1567 | ---------------------------------------------------- | |
1568 | pt = {6.6, 6.8, 7, 7.2, 7.4} | |
1569 | mouse.KeyDown:connect(function(key) | |
1570 | if key == "q" then | |
1571 | if Debounces.CanJoke == true then | |
1572 | Debounces.CanJoke = false | |
1573 | u = Instance.new("Sound",char) | |
1574 | u.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1575 | u.Pitch = pt[math.random(1,#pt)] | |
1576 | u.Volume = 0.3 | |
1577 | u2 = Instance.new("Sound",char) | |
1578 | u2.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1579 | u2.Pitch = u.Pitch | |
1580 | u2.Volume = 0.3 | |
1581 | u3 = Instance.new("Sound",char) | |
1582 | u3.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1583 | u3.Pitch = u.Pitch | |
1584 | u3.Volume = 0.3 | |
1585 | wait(.01) | |
1586 | u:Play() | |
1587 | u2:Play() | |
1588 | u3:Play() | |
1589 | wait(1.5) | |
1590 | u:Destroy() | |
1591 | u2:Destroy() | |
1592 | u3:Destroy() | |
1593 | if Debounces.CanJoke == false then | |
1594 | Debounces.CanJoke = true | |
1595 | end | |
1596 | end | |
1597 | end | |
1598 | end) | |
1599 | ---------------------------------------------------- | |
1600 | ---------------------------------------------------- | |
1601 | mouse.KeyDown:connect(function(key) | |
1602 | if key == "j" then | |
1603 | if Debounces.CanJoke == true then | |
1604 | Debounces.CanJoke = false | |
1605 | z = Instance.new("Sound",hed) | |
1606 | z.SoundId = "rbxassetid://415859013" | |
1607 | z.Pitch = pitches[math.random(1,#pitches)] | |
1608 | z.Volume = 1 | |
1609 | wait() | |
1610 | z:Play() | |
1611 | wait(2) | |
1612 | z:Destroy() | |
1613 | if Debounces.CanJoke == false then | |
1614 | Debounces.CanJoke = true | |
1615 | end | |
1616 | end | |
1617 | end | |
1618 | end) | |
1619 | ||
1620 | ---------------------------------------------------- | |
1621 | Grab = true | |
1622 | mouse.KeyDown:connect(function(key) | |
1623 | if key == "e" then | |
1624 | Debounces.on = true | |
1625 | Debounces.NoIdl = true | |
1626 | Debounces.ks = true | |
1627 | if Grab == false then | |
1628 | gp = nil | |
1629 | for i = 1, 20 do | |
1630 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
1631 | 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.5) | |
1632 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2) | |
1633 | 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) | |
1634 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2) | |
1635 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1636 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2) | |
1637 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1638 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
1639 | 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) | |
1640 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
1641 | 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) | |
1642 | if Debounces.on == false then break end | |
1643 | fat.Event:wait() | |
1644 | end | |
1645 | con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit) | |
1646 | ht = hit.Parent | |
1647 | for i,v in pairs(ht:GetChildren()) do | |
1648 | if v:IsA("Part") then | |
1649 | v.CanCollide = false | |
1650 | v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001) | |
1651 | end | |
1652 | end | |
1653 | hum1=ht:FindFirstChild('Humanoid') | |
1654 | if hum1 ~= nil then | |
1655 | if Debounces.ks==true then | |
1656 | z = Instance.new("Sound",char) | |
1657 | z.SoundId = "rbxassetid://541909913" | |
1658 | z.Volume = 100 | |
1659 | z:Play() | |
1660 | Debounces.ks=false | |
1661 | end | |
1662 | hum1.PlatformStand=true | |
1663 | hum1:ChangeState'Physics' | |
1664 | gp = ht | |
1665 | Grab = true | |
1666 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0)) | |
1667 | asd.Parent = larm | |
1668 | asd.Name = "asd" | |
1669 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0) | |
1670 | stanceToggle = "Grabbed" | |
1671 | --[[elseif hum1 == nil then | |
1672 | con1:disconnect() | |
1673 | wait() return]]-- | |
1674 | end | |
1675 | end) | |
1676 | for i = 1, 20 do | |
1677 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
1678 | 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.5) | |
1679 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
1680 | 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) | |
1681 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2) | |
1682 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1683 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
1684 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1685 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
1686 | 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) | |
1687 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
1688 | 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) | |
1689 | if Debounces.on == false then break end | |
1690 | fat.Event:wait() | |
1691 | end | |
1692 | con1:disconnect() | |
1693 | Debounces.on = false | |
1694 | Debounces.NoIdl = false | |
1695 | elseif Grab == true then | |
1696 | Grab = false | |
1697 | --[[for i = 1, 16 do | |
1698 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3) | |
1699 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3) | |
1700 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3) | |
1701 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
1702 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
1703 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1704 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3) | |
1705 | if Debounces.on == false then end | |
1706 | rs:wait() | |
1707 | end]]-- | |
1708 | for i = 1, 16 do | |
1709 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3) | |
1710 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5) | |
1711 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3) | |
1712 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5) | |
1713 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) | |
1714 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1715 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3) | |
1716 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1717 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
1718 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4) | |
1719 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1720 | 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) | |
1721 | if Debounces.on == false then end | |
1722 | rs:wait() | |
1723 | end | |
1724 | for i = 1, 12 do | |
1725 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6) | |
1726 | 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.5) | |
1727 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6) | |
1728 | 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) | |
1729 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6) | |
1730 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1731 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6) | |
1732 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5) | |
1733 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6) | |
1734 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4) | |
1735 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6) | |
1736 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4) | |
1737 | if Debounces.on == false then end | |
1738 | rs:wait() | |
1739 | end | |
1740 | Slam() | |
1741 | if gp ~= nil then | |
1742 | for i,v in pairs(larm:GetChildren()) do | |
1743 | if v.Name == "asd" and v:IsA("Weld") then | |
1744 | v:Remove() | |
1745 | end | |
1746 | if v:IsA("Part") then | |
1747 | v.CanCollide = true | |
1748 | v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1) | |
1749 | end | |
1750 | end | |
1751 | end | |
1752 | stanceToggle = "Idle1" | |
1753 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
1754 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
1755 | bv.P = 125000 | |
1756 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
1757 | ht=nil | |
1758 | Debounces.on = false | |
1759 | Debounces.NoIdl = false | |
1760 | elseif ht == nil then wait() | |
1761 | Grab = false | |
1762 | Debounces.on = false | |
1763 | Debounces.NoIdl = false | |
1764 | end | |
1765 | end | |
1766 | end) | |
1767 | ---------------------------------------------------- | |
1768 | Change = true | |
1769 | mouse.KeyDown:connect(function(key) | |
1770 | if key == "n" then | |
1771 | if Change == false then | |
1772 | Change = true | |
1773 | stanceToggle = "Idle2" | |
1774 | elseif Change == true then | |
1775 | Change = false | |
1776 | stanceToggle = "Idle1" | |
1777 | end | |
1778 | end | |
1779 | end) | |
1780 | ---------------------------------------------------- | |
1781 | mouse.KeyDown:connect(function(key) | |
1782 | if string.byte(key) == 52 then | |
1783 | Swing = 2 | |
1784 | char.Humanoid.WalkSpeed = 99 | |
1785 | end | |
1786 | end) | |
1787 | mouse.KeyUp:connect(function(key) | |
1788 | if string.byte(key) == 52 then | |
1789 | Swing = 1 | |
1790 | char.Humanoid.WalkSpeed = 99 | |
1791 | end | |
1792 | end) | |
1793 | ---------------------------------------------------- | |
1794 | ||
1795 | jump = false | |
1796 | rs:connect(function() | |
1797 | if char.Humanoid.Jump == true then | |
1798 | jump = true | |
1799 | else | |
1800 | jump = false | |
1801 | end | |
1802 | char.Humanoid.FreeFalling:connect(function(f) | |
1803 | if f then | |
1804 | ffing = true | |
1805 | else | |
1806 | ffing = ftrue | |
1807 | end | |
1808 | end) | |
1809 | sine = sine + change | |
1810 | if jump == true then | |
1811 | animpose = "Jumping" | |
1812 | elseif ffing == true then | |
1813 | animpose = "Freefalling" | |
1814 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
1815 | animpose = "Idle" | |
1816 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
1817 | animpose = "Walking" | |
1818 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
1819 | animpose = "Running" | |
1820 | end | |
1821 | RightLeg = CFrame.new(0.5,-1,0) | |
1822 | LeftLeg = CFrame.new(-0.5,-1,0) | |
1823 | ||
1824 | lefth = (torso.CFrame*LeftLeg) | |
1825 | righth = (torso.CFrame*RightLeg) | |
1826 | ||
1827 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
1828 | ||
1829 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
1830 | ||
1831 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
1832 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
1833 | if animpose ~= lastanimpose then | |
1834 | sine = 0 | |
1835 | if Debounces.NoIdl == false then | |
1836 | if stanceToggle == "Idle1" then | |
1837 | 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) | |
1838 | 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) | |
1839 | 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) | |
1840 | 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) | |
1841 | 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) | |
1842 | 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) | |
1843 | elseif stanceToggle == "Idle2" then | |
1844 | 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) | |
1845 | 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) | |
1846 | 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) | |
1847 | 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) | |
1848 | 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) | |
1849 | 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) | |
1850 | end | |
1851 | fat.Event:wait() | |
1852 | end | |
1853 | else | |
1854 | end | |
1855 | lastanimpose = animpose | |
1856 | if Debounces.NoIdl == false then | |
1857 | if animpose == "Idle" then | |
1858 | change = 0.5 | |
1859 | if stanceToggle == "Idle1" then | |
1860 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1861 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3) | |
1862 | ||
1863 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8) | |
1864 | 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.5) | |
1865 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8) | |
1866 | 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) | |
1867 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5) | |
1868 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5) | |
1869 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1) | |
1870 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1) | |
1871 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
1872 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1) | |
1873 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
1874 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1) | |
1875 | elseif stanceToggle == "Idle2" then | |
1876 | ||
1877 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1878 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1) | |
1879 | 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.2) | |
1880 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6) | |
1881 | 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.2) | |
1882 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8) | |
1883 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
1884 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
1885 | --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3) | |
1886 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1887 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8) | |
1888 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8) | |
1889 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8) | |
1890 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8) | |
1891 | elseif stanceToggle == "Grabbed" then | |
1892 | grab = true | |
1893 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1894 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1895 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
1896 | 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.2) | |
1897 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3) | |
1898 | 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.2) | |
1899 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
1900 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1901 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
1902 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
1903 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
1904 | 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) | |
1905 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1906 | 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) | |
1907 | end | |
1908 | elseif animpose == "Walking" then | |
1909 | if stanceToggle == "Grabbed" then | |
1910 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1911 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1912 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.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) | |
1913 | 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) | |
1914 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3) | |
1915 | 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.2) | |
1916 | 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) | |
1917 | 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) | |
1918 | 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) | |
1919 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
1920 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
1921 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.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) | |
1922 | 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) | |
1923 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.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) | |
1924 | 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) | |
1925 | elseif stanceToggle ~= "Grabbed" then | |
1926 | change = 1 | |
1927 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1928 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1929 | ||
1930 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.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) | |
1931 | 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) | |
1932 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.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) | |
1933 | 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) | |
1934 | 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) | |
1935 | 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) | |
1936 | 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) | |
1937 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
1938 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
1939 | --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
1940 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.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) | |
1941 | 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) | |
1942 | --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
1943 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.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) | |
1944 | 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) | |
1945 | end | |
1946 | elseif animpose == "Running" then | |
1947 | change = 1 | |
1948 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1949 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1950 | ||
1951 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.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(0), math.rad(-20+70*math.cos(sine/4))), 0.2) | |
1952 | 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) | |
1953 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.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(0), math.rad(20+70*math.cos(sine/4))), 0.2) | |
1954 | 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) | |
1955 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.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) | |
1956 | 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) | |
1957 | 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) | |
1958 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1959 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.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), .8) | |
1960 | 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) | |
1961 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.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), .8) | |
1962 | 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) | |
1963 | elseif animpose == "Jumping" then | |
1964 | ||
1965 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1966 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1967 | 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) | |
1968 | 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) | |
1969 | 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) | |
1970 | 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) | |
1971 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2) | |
1972 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
1973 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1974 | 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) | |
1975 | 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) | |
1976 | 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) | |
1977 | 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) | |
1978 | elseif animpose == "Freefalling" then | |
1979 | ||
1980 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1981 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1982 | 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) | |
1983 | 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) | |
1984 | 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) | |
1985 | 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) | |
1986 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2) | |
1987 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) | |
1988 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1989 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
1990 | 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) | |
1991 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2) | |
1992 | 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) | |
1993 | end | |
1994 | end | |
1995 | end) | |
1996 | hum.MaxHealth = math.huge | |
1997 | wait(3) | |
1998 | hum.Health = math.huge |