SHOW:
|
|
- or go back to the newest paste.
1 | - | --required first c/require(652676518) |
1 | + | --required first c/require(106522107) |
2 | ||
3 | local Player = game:service("Players").LocalPlayer | |
4 | repeat wait() until Player.Character ~= nil | |
5 | ||
6 | -- todo: | |
7 | ||
8 | local plrs = game:GetService('Players') | |
9 | local plr = plrs.LocalPlayer | |
10 | local char = plr.Character | |
11 | local bp = plr.Backpack | |
12 | local hum = char.Humanoid | |
13 | local T = char.Torso | |
14 | local Character = char | |
15 | local Humanoid = hum | |
16 | local torso = char.Torso | |
17 | local Char = Player.Character | |
18 | local char = Char | |
19 | local mouse = Player:GetMouse() | |
20 | local Backpack = Player.Backpack | |
21 | local PlayerGui = Player.PlayerGui | |
22 | local Camera = workspace.CurrentCamera | |
23 | local Humanoid = Char:WaitForChild("Humanoid") | |
24 | local Torso = Char:WaitForChild("Torso") | |
25 | local Head = Char:WaitForChild("Head") | |
26 | local ra = Char:WaitForChild("Right Arm") | |
27 | local la = Char:WaitForChild("Left Arm") | |
28 | local rl = Char:WaitForChild("Right Leg") | |
29 | local ll = Char:WaitForChild("Left Leg") | |
30 | local rs = Torso:WaitForChild("Right Shoulder") | |
31 | local ls = Torso:WaitForChild("Left Shoulder") | |
32 | local rh = Torso:WaitForChild("Right Hip") | |
33 | local lh = Torso:WaitForChild("Left Hip") | |
34 | local neck = Torso:WaitForChild("Neck") | |
35 | local rootpart = Char:WaitForChild("HumanoidRootPart") | |
36 | local rj = rootpart:WaitForChild("RootJoint") | |
37 | local anim = Char:WaitForChild("Animate") | |
38 | local RunService = game:GetService("RunService") | |
39 | local UIA = game:GetService("UserInputService") | |
40 | local CF = CFrame.new | |
41 | local CA = CFrame.Angles | |
42 | local FEA = CFrame.fromEulerAnglesXYZ | |
43 | local FAA = CFrame.fromAxisAngle | |
44 | local V3 = Vector3.new | |
45 | local CN = Color3.new | |
46 | local Ice = Instance.new | |
47 | local BC = BrickColor.new | |
48 | local UD2 = UDim2.new | |
49 | local C3 = Color3.new | |
50 | local MR = math.rad | |
51 | local MP = math.pi | |
52 | local MD = math.deg | |
53 | local MH = math.huge | |
54 | local MS = math.sin | |
55 | local MC = math.cos | |
56 | local MT = math.tan | |
57 | local MAS = math.asin | |
58 | local MAC = math.acos | |
59 | local MAT = math.atan | |
60 | local components = CF().components | |
61 | local State = "Calm" | |
62 | local Slash = false | |
63 | local Sheathed = false | |
64 | local combocounter = 0 | |
65 | ||
66 | humanoid = char:findFirstChild("Humanoid") | |
67 | hum = humanoid | |
68 | torso = char:findFirstChild("Torso") | |
69 | head = char.Head | |
70 | ra = char:findFirstChild("Right Arm") | |
71 | ra.CanCollide = true | |
72 | la = char:findFirstChild("Left Arm") | |
73 | la.CanCollide = true | |
74 | rl = char:findFirstChild("Right Leg") | |
75 | rl.CanCollide = true | |
76 | ll = char:findFirstChild("Left Leg") | |
77 | ll.CanCollide = true | |
78 | rs = torso:findFirstChild("Right Shoulder") | |
79 | ls = torso:findFirstChild("Left Shoulder") | |
80 | rh = torso:findFirstChild("Right Hip") | |
81 | lh = torso:findFirstChild("Left Hip") | |
82 | neck = torso:findFirstChild("Neck") | |
83 | rootpart = char:findFirstChild("HumanoidRootPart") | |
84 | rj = rootpart:findFirstChild("RootJoint") | |
85 | anim = char:findFirstChild("Animate") | |
86 | camera = workspace.CurrentCamera | |
87 | plr.CameraMaxZoomDistance = math.huge | |
88 | pcall(function()anim:Destroy()end) | |
89 | pcall(function()char["Health"].Disabled = true end) | |
90 | pcall(function()humanoid.Animator:Destroy()end) | |
91 | local rjo = rootpart.RootJoint:Clone() | |
92 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
93 | local wld = Instance.new("Weld", wp1) | |
94 | wld.Part0 = wp0 | |
95 | wld.Part1 = wp1 | |
96 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
97 | return wld | |
98 | end | |
99 | for k,v in pairs(char:children'') do | |
100 | if v:isA('BasePart') then | |
101 | v.BrickColor = BrickColor.new('Really black') | |
102 | end | |
103 | end | |
104 | pcall(function() | |
105 | char["Body Colors"].HeadColor = BrickColor.new("Really black") | |
106 | char["Body Colors"].TorsoColor = BrickColor.new("Really black") | |
107 | char["Body Colors"].LeftArmColor = BrickColor.new("Really black") | |
108 | char["Body Colors"].RightArmColor = BrickColor.new("Really black") | |
109 | char["Body Colors"].LeftLegColor = BrickColor.new("Really black") | |
110 | char["Body Colors"].RightLegColor = BrickColor.new("Really black") | |
111 | end) | |
112 | local mult = 1 | |
113 | ||
114 | la.Size = la.Size * mult | |
115 | ra.Size = ra.Size * mult | |
116 | ll.Size = ll.Size * mult | |
117 | rl.Size = rl.Size * mult | |
118 | torso.Size = torso.Size * mult | |
119 | head.Size = head.Size * mult | |
120 | rootpart.Size = rootpart.Size * mult | |
121 | ||
122 | local lm = newWeld(torso, la, -1.7*mult, 0.5*mult, 0) | |
123 | lm.C1 = CFrame.new(0, 0.5*mult, 0) | |
124 | local rm = newWeld(torso, ra, 1.7*mult, 0.5*mult, 0) | |
125 | rm.C1 = CFrame.new(0, 0.5*mult, 0) | |
126 | local neck = newWeld(torso, head, 0, mult, 0) | |
127 | local llegm = newWeld(torso, ll, -0.5*mult, -1*mult, 0) | |
128 | llegm.C1 = CFrame.new(0, mult, 0) | |
129 | local rlegm = newWeld(torso, rl, 0.5*mult, -1*mult, 0) | |
130 | rlegm.C1 = CFrame.new(0, mult, 0) | |
131 | local rj = rjo:Clone() | |
132 | rj.Part0 = rootpart | |
133 | rj.Part1 = torso | |
134 | rj.Parent = rootpart | |
135 | neck.C1 = CFrame.new(0, -(mult/2), 0) | |
136 | neckc0 = neck.C0 | |
137 | rsc0 = rm.C0 | |
138 | lsc0 = lm.C0 | |
139 | llc0 = llegm.C0 | |
140 | rlc0 = rlegm.C0 | |
141 | rootc0 = rj.C0 | |
142 | rootc1 = rj.C1 | |
143 | wait() | |
144 | ||
145 | ||
146 | function Create(Instanc,prop) | |
147 | local p=Instance.new(Instanc) | |
148 | for i,v in pairs(prop) do | |
149 | p[i]=v | |
150 | end | |
151 | return p | |
152 | end | |
153 | ||
154 | function rwait(num) | |
155 | if num==0 or num==nil then | |
156 | game:service'RunService'.Stepped:wait(0) | |
157 | else | |
158 | for i=0,num do | |
159 | game:service'RunService'.Stepped:wait(0) | |
160 | end | |
161 | end | |
162 | return true | |
163 | end | |
164 | ||
165 | ||
166 | local pony = Instance.new('PointLight', Torso) | |
167 | pony.Name = 'LePontyPontz' | |
168 | pony.Brightness = 1 | |
169 | pony.Color = Color3.new(0,255/255, 0) | |
170 | ||
171 | coroutine.wrap(function() | |
172 | game:service'RunService'.Stepped:connect(function() | |
173 | pony.Range = 5+math.abs(math.sin(tick()/2))*6 | |
174 | end) | |
175 | end)() | |
176 | ||
177 | local function setupPart(part) | |
178 | part.Anchored = true | |
179 | part.FormFactor = 'Custom' | |
180 | part.CanCollide = false | |
181 | part.BrickColor = BrickColor.new("Sea green") | |
182 | part.Material = "Neon" | |
183 | part.TopSurface = 'SmoothNoOutlines' | |
184 | part.BottomSurface = 'SmoothNoOutlines' | |
185 | part.FrontSurface = 'SmoothNoOutlines' | |
186 | part.BackSurface = 'SmoothNoOutlines' | |
187 | part.LeftSurface = 'SmoothNoOutlines' | |
188 | part.RightSurface = 'SmoothNoOutlines' | |
189 | end | |
190 | ||
191 | function CFrameFromTopBack(at, top, back) | |
192 | local right = top:Cross(back) | |
193 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
194 | end | |
195 | ||
196 | function CreateTriangle(parent, a, b, c) | |
197 | local this = {} | |
198 | local mPart1 = Instance.new('WedgePart') | |
199 | setupPart(mPart1) | |
200 | local mPart2 = Instance.new('WedgePart') | |
201 | setupPart(mPart2) | |
202 | function this:Set(a, b, c) --[[ edg1 A ------|------>B --. '\ | / \ \part1|part2/ | \ cut / / Direction edges point in: edg3 \ / edg2 / (clockwise) \ / |/ \<- / ` \ / C --]] | |
203 | local ab, bc, ca = b-a, c-b, a-c local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude | |
204 | local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm)) | |
205 | local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm)) | |
206 | local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam)) | |
207 | if edg1 < edg2 then | |
208 | if edg1 < edg3 then | |
209 | -- nothing to change | |
210 | else | |
211 | a, b, c = c, a, b | |
212 | ab, bc, ca = ca, ab, bc | |
213 | abm = cam | |
214 | end | |
215 | else | |
216 | if edg2 < edg3 then | |
217 | a, b, c = b, c, a | |
218 | ab, bc, ca = bc, ca, ab | |
219 | abm = bcm | |
220 | else | |
221 | a, b, c = c, a, b | |
222 | ab, bc, ca = ca, ab, bc | |
223 | abm = cam | |
224 | end | |
225 | end | |
226 | ||
227 | local len1 = -ca:Dot(ab)/abm local len2 = abm - len1 local width = (ca + ab.unit*len1).magnitude | |
228 | local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit) | |
229 | ||
230 | mPart1.Parent = parent | |
231 | mPart1.Size = Vector3.new(1,1,1) | |
232 | mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
233 | local Mesh = Instance.new("SpecialMesh",mPart1) | |
234 | Mesh.MeshType = "Wedge" | |
235 | Mesh.Scale = Vector3.new(0.005, width, len1) | |
236 | ||
237 | mPart2.Parent = parent | |
238 | mPart2.Size = Vector3.new(1,1,1) | |
239 | mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
240 | local Mesh = Instance.new("SpecialMesh",mPart2) | |
241 | Mesh.MeshType = "Wedge" | |
242 | Mesh.Scale = Vector3.new(0.005, width, len2) | |
243 | end | |
244 | ||
245 | function this:SetProperty(prop, value) | |
246 | mPart1[prop] = value | |
247 | mPart2[prop] = value | |
248 | end | |
249 | ||
250 | function this:GetProperty(prop) | |
251 | return mPart1[prop] | |
252 | end | |
253 | ||
254 | this:Set(a, b, c) | |
255 | function this:Destroy() | |
256 | mPart1:Destroy() | |
257 | mPart2:Destroy() | |
258 | end | |
259 | return this | |
260 | end | |
261 | ||
262 | local ttt | |
263 | local lastdps = tick() | |
264 | local ohp = hum.Health | |
265 | local berserk = false | |
266 | hum.Changed:connect(function(val) | |
267 | if val == 'Health_XML' then | |
268 | if hum.Health < ohp then | |
269 | lastdps = tick() | |
270 | end | |
271 | ohp = hum.Health | |
272 | if not berserk and hum.Health<(hum.MaxHealth*.15) then | |
273 | ttt = true | |
274 | hum.WalkSpeed = 0 | |
275 | hum.MaxHealth = 1/0 | |
276 | otheranims = true | |
277 | ||
278 | local rs = game:service'RunService'.Stepped | |
279 | ||
280 | GW = function() | |
281 | local wave = Instance.new("Part", Torso) | |
282 | wave.BrickColor = BrickColor.new("Really black") | |
283 | wave.Anchored = true | |
284 | wave.CanCollide = false | |
285 | wave.Locked = true | |
286 | wave.Size = Vector3.new(1, 1, 1) | |
287 | wave.TopSurface = "Smooth" | |
288 | wave.BottomSurface = "Smooth" | |
289 | wave.Material="Neon" | |
290 | wave.Transparency = 0.35 | |
291 | wave.CFrame = Torso.CFrame | |
292 | wm = Instance.new("SpecialMesh", wave) | |
293 | wm.MeshType = "Sphere" | |
294 | wm.Scale = Vector3.new(1,1,1) | |
295 | coroutine.wrap(function() | |
296 | for i = 0, 15, 1 do | |
297 | wave.Size = wave.Size + Vector3.new(1, 1, 1) | |
298 | wave.CFrame = Torso.CFrame | |
299 | wave.Transparency = i/14 | |
300 | wait() | |
301 | end | |
302 | wait() | |
303 | wave:Destroy() | |
304 | end)() | |
305 | end | |
306 | ||
307 | Spawn(function() | |
308 | while ttt do | |
309 | GW() | |
310 | wait(math.random(1,4)) | |
311 | end | |
312 | end) | |
313 | ||
314 | local prtz = {la,Head,Torso} | |
315 | local pes = {} | |
316 | ||
317 | for i,v in pairs(prtz) do | |
318 | coroutine.wrap(function() | |
319 | local dsa = Instance.new('ParticleEmitter', v) | |
320 | local color1 = Color3.new(0.5,1,0.5) | |
321 | local color2 = Color3.new(0,85/255,0) | |
322 | local sequence = ColorSequence.new(color1,color2) | |
323 | dsa.Color = sequence | |
324 | dsa.LightEmission = .8 | |
325 | dsa.Texture = "http://www.roblox.com/asset/?id=242102147" | |
326 | dsa.LockedToPart = true | |
327 | dsa.EmissionDirection = 'Top' | |
328 | dsa.Lifetime = NumberRange.new(1) | |
329 | dsa.VelocitySpread = 10 | |
330 | dsa.Size = NumberSequence.new(1) | |
331 | table.insert(pes, dsa) | |
332 | end)() | |
333 | end | |
334 | ||
335 | ||
336 | Mode = 'Kneeling' | |
337 | berserk = true | |
338 | wait(2) | |
339 | hum.MaxHealth = 10000 | |
340 | for i = 500, (10000*.75),15 do | |
341 | hum.Health = i | |
342 | game:service'RunService'.Stepped:wait() | |
343 | end | |
344 | ttt = false | |
345 | for q,e in pairs(pes) do game.Destroy(e) end | |
346 | hum.WalkSpeed = 8 | |
347 | otheranims = false | |
348 | end | |
349 | elseif val =='PlatformStand' then | |
350 | hum.PlatformStand = false | |
351 | elseif val == "Sit" then | |
352 | hum.Sit = false | |
353 | elseif val == "WalkSpeed" then | |
354 | end | |
355 | end) | |
356 | regening = false | |
357 | lastdps = tick() | |
358 | function regenHealth() | |
359 | if regening then return end | |
360 | if (tick()-lastdps < 25) then return end | |
361 | regening = true | |
362 | local s = wait(1) | |
363 | local health = hum.Health | |
364 | if health > 0 and health < hum.MaxHealth then | |
365 | local newHealthDelta = hum.MaxHealth * .03 | |
366 | health = health + newHealthDelta | |
367 | hum.Health = math.min(health,hum.MaxHealth) | |
368 | end | |
369 | ||
370 | regening = false | |
371 | end | |
372 | ||
373 | local LastTrail = nil | |
374 | local Trails = {} | |
375 | ||
376 | ||
377 | ||
378 | --SlashDamage = Damage(TrailPart) | |
379 | ||
380 | asd = function(parent,string) | |
381 | repeat wait() until parent:FindFirstChild(string) | |
382 | wait() | |
383 | return parent:FindFirstChild(string) | |
384 | end | |
385 | ||
386 | local beamy = asd(game.ReplicatedStorage, 'Beamy'):Clone() | |
387 | ||
388 | local Model = asd(game.ReplicatedStorage,'mdl'):Clone() | |
389 | Model.Parent = Char | |
390 | ||
391 | local shm,swm,shem = Model:WaitForChild'Sheath',Model:WaitForChild'Sword',Model:WaitForChild'Shield' | |
392 | ||
393 | local LAH,RAH,TH = shem:WaitForChild'LeftArmHandle',swm:WaitForChild'RightArmHandle',shm:WaitForChild'TorsoHandle' | |
394 | ||
395 | LAH.Transparency,RAH.Transparency,TH.Transparency = 1,1,1 | |
396 | ||
397 | local law = Create("Weld",{Parent=la,Part0=la,Part1=LAH,C0=CFrame.new(0,0,0)}) | |
398 | local raw = Create("Weld",{Parent=ra,Part0=ra,Part1=RAH,C0=CFrame.new(0,0,0)}) | |
399 | local rawc0 = raw.C0 | |
400 | local lawc0 = law.C0 | |
401 | LAH.Anchored,RAH.Anchored,TH.Anchored = false,false,false | |
402 | local torw = Create("Weld",{Parent=Torso,Part0=Torso,Part1=TH,C0=CFrame.new(0,0,0)}) | |
403 | ||
404 | TrailPart = Create("Part",{Parent=Char,Anchored=false,CanCollide=false,Size=V3(0,5,0),Transparency=1}) | |
405 | TrailPartMesh = Create("Snap",{Parent=TrailPart,Part0=RAH,Part1=TrailPart,C0=CFrame.new(0,-1,-4.2)*CFrame.Angles(MR(90),0,0)}) | |
406 | ||
407 | local get=game.ReplicatedStorage:FindFirstChild'GoldSuit':Clone() | |
408 | get.Parent = Char | |
409 | local torso=get:WaitForChild("Torso") local head=get:WaitForChild("Head") local rightarm=get:WaitForChild("RightArm") | |
410 | local leftarm=get:WaitForChild("LeftArm") local rightleg=get:WaitForChild("RightLeg") local leftleg=get:WaitForChild("LeftLeg") | |
411 | Create("Weld",{Parent=torso.Handle,Part0=Torso,Part1=torso.Handle,C0=CFrame.new(0,0,0)}) | |
412 | Create("Weld",{Parent=head.Handle,Part0=Head,Part1=head.Handle,C0=CFrame.new(0,0,0)}) | |
413 | Create("Weld",{Parent=rightarm.Handle,Part0=ra,Part1=rightarm.Handle,C0=CFrame.new(0,0,0)}) | |
414 | Create("Weld",{Parent=leftarm.Handle,Part0=la,Part1=leftarm.Handle,C0=CFrame.new(0,0,0)}) | |
415 | Create("Weld",{Parent=leftleg.Handle,Part0=ll,Part1=leftleg.Handle,C0=CFrame.new(0,0,0)}) | |
416 | Create("Weld",{Parent=rightleg.Handle,Part0=rl,Part1=rightleg.Handle,C0=CFrame.new(0,0,0)}) | |
417 | function recurse(c) | |
418 | for i,v in pairs(c:children()) do | |
419 | if v:IsA'BasePart' then | |
420 | v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001) | |
421 | end | |
422 | recurse(v) | |
423 | end | |
424 | end | |
425 | recurse(get) | |
426 | recurse(Model) | |
427 | ra.Transparency=1 | |
428 | la.Transparency=1 | |
429 | ll.Transparency=1 | |
430 | rl.Transparency=1 | |
431 | ||
432 | HitDB = {} | |
433 | ||
434 | function Damage(part) | |
435 | smthn = part.Touched:connect(function(hit) | |
436 | Human = hit.Parent:findFirstChild("Humanoid") | |
437 | if Human ~= nil and hit.Parent.Name ~= Player.Name and Slash == true and HitDB[hit.Parent.Humanoid] == nil then | |
438 | coroutine.wrap(function() --threads so we don't have to wait after each hit for every person hit! | |
439 | HitDB[hit.Parent.Humanoid] = true | |
440 | Human.Health = Human.Health-25 | |
441 | local vu = Instance.new("BodyVelocity",hit.Parent.Torso) | |
442 | vu.P = 500 | |
443 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
444 | vu.velocity = Head.CFrame.lookVector*10 | |
445 | game:GetService("Debris"):AddItem(vu,0.267) | |
446 | wait(0.25) | |
447 | HitDB[hit.Parent.Humanoid] = nil | |
448 | end)() | |
449 | end | |
450 | end) | |
451 | return smthn | |
452 | end | |
453 | ||
454 | hum.WalkSpeed = 8 | |
455 | hum.MaxHealth = 10000 | |
456 | hum.Health = 10000 | |
457 | ||
458 | function lerp(weld,beglerp,endlerp,speed) | |
459 | if weld.ClassName =='Weld' or weld.ClassName == 'Motor6D' then | |
460 | weld.C0 = beglerp:lerp(endlerp,speed) | |
461 | else | |
462 | weld.CFrame = beglerp:lerp(endlerp,speed) | |
463 | end | |
464 | return (weld.ClassName =='Weld' or weld.ClassName == 'Motor6D' and weld.C0 or weld.CFrame) | |
465 | end | |
466 | ||
467 | Ragdoll = function(Format, Character, Force) | |
468 | if Force ~= true then | |
469 | if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then return false end | |
470 | if Character:FindFirstChild("Ragdoll") == nil and Format == false then return false end | |
471 | end | |
472 | local Head = nil | |
473 | local Torso = nil | |
474 | local Humanoid = nil | |
475 | local Dead = false | |
476 | for _, Children in pairs(Character:GetChildren()) do | |
477 | if Children.ClassName == "ForceField" then Children:Remove() end | |
478 | if Children.Name == "" then Children:Remove() end | |
479 | if Children.Name == "Head" then Head = Children end | |
480 | if Children.Name == "Torso" then Torso = Children end | |
481 | if Children.ClassName == "Humanoid" then Humanoid = Children end | |
482 | if Children:IsA("Accoutrement") then | |
483 | if Children:FindFirstChild("Handle") ~= nil then | |
484 | if math.random(1, 3) == 1 then | |
485 | coroutine.wrap(function() | |
486 | Children.Parent = Workspace | |
487 | wait() | |
488 | Children.Parent = Character | |
489 | Children.Handle.CanCollide = true | |
490 | end)() | |
491 | else | |
492 | Children.Parent = Workspace | |
493 | Children.Handle.CanCollide = true | |
494 | end | |
495 | else | |
496 | Children:Remove() | |
497 | end | |
498 | end | |
499 | end | |
500 | if Humanoid ~= nil then | |
501 | if Humanoid.Health <= 0 then | |
502 | Dead = true | |
503 | end | |
504 | end | |
505 | if Torso ~= nil then | |
506 | for _, Children2 in pairs(Torso:GetChildren()) do | |
507 | if Children2:IsA("JointInstance") then | |
508 | Children2:Remove() | |
509 | end | |
510 | end | |
511 | end | |
512 | if Head ~= nil and (function() | |
513 | if Dead == true and math.random(1, 2) == 1 then | |
514 | return true | |
515 | else | |
516 | return false | |
517 | end | |
518 | end)() == false then | |
519 | local Neck = Instance.new("Motor6D") | |
520 | Neck.Name = "Neck" | |
521 | Neck.Part0 = Torso | |
522 | Neck.Part1 = Head | |
523 | Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180)) | |
524 | Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180)) | |
525 | Neck.MaxVelocity = 0.1 | |
526 | Neck.Parent = Torso | |
527 | end | |
528 | if Format == true then | |
529 | local Ragdoll = Instance.new("IntValue") | |
530 | Ragdoll.Name = "Ragdoll" | |
531 | Ragdoll.Parent = Character | |
532 | if Torso ~= nil then | |
533 | Torso.Velocity = Torso.Velocity / 1.25 | |
534 | Torso.RotVelocity = (Torso.RotVelocity / 1.25) + Head.CFrame.lookVector*80 | |
535 | if Dead == true then | |
536 | if Humanoid ~= nil then | |
537 | local Humanoid2 = Humanoid:Clone() | |
538 | wait() | |
539 | Humanoid:Remove() | |
540 | Humanoid2.Parent = Character | |
541 | Humanoid = Humanoid2 | |
542 | end | |
543 | end | |
544 | local Limb = Character:FindFirstChild("Right Arm") | |
545 | if Limb ~= nil then | |
546 | Limb.Velocity = Torso.Velocity | |
547 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
548 | local Joint = Instance.new("Glue") | |
549 | Joint.Name = "RightShoulder" | |
550 | Joint.Part0 = Torso | |
551 | Joint.Part1 = Limb | |
552 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
553 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
554 | Joint.Parent = Torso | |
555 | local Weight = Instance.new("Part") | |
556 | Weight.Name = "" | |
557 | Weight.TopSurface = 0 | |
558 | Weight.BottomSurface = 0 | |
559 | Weight.Shape = "Block" | |
560 | Weight.FormFactor = "Custom" | |
561 | Weight.Size = Vector3.new(1, 1, 1) | |
562 | Weight.Transparency = 1 | |
563 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
564 | Weight.Parent = Character | |
565 | local Weld = Instance.new("Weld") | |
566 | Weld.Part0 = Limb | |
567 | Weld.Part1 = Weight | |
568 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
569 | Weld.Parent = Limb | |
570 | end | |
571 | local Limb = Character:FindFirstChild("Left Arm") | |
572 | if Limb then | |
573 | Limb.Velocity = Torso.Velocity | |
574 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
575 | local Joint = Instance.new("Glue") | |
576 | Joint.Name = "LeftShoulder" | |
577 | Joint.Part0 = Torso | |
578 | Joint.Part1 = Limb | |
579 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
580 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
581 | Joint.Parent = Torso | |
582 | local Weight = Instance.new("Part") | |
583 | Weight.Name = "" | |
584 | Weight.TopSurface = 0 | |
585 | Weight.BottomSurface = 0 | |
586 | Weight.Shape = "Block" | |
587 | Weight.FormFactor = "Custom" | |
588 | Weight.Size = Vector3.new(1, 1, 1) | |
589 | Weight.Transparency = 1 | |
590 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
591 | Weight.Parent = Character | |
592 | local Weld = Instance.new("Weld") | |
593 | Weld.Part0 = Limb | |
594 | Weld.Part1 = Weight | |
595 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
596 | Weld.Parent = Limb | |
597 | end | |
598 | local Limb = Character:FindFirstChild("Right Leg") | |
599 | if Limb then | |
600 | Limb.Velocity = Torso.Velocity | |
601 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
602 | local Joint = Instance.new("Glue") | |
603 | Joint.Name = "RightHip" | |
604 | Joint.Part0 = Torso | |
605 | Joint.Part1 = Limb | |
606 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
607 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
608 | Joint.Parent = Torso | |
609 | local Weight = Instance.new("Part") | |
610 | Weight.Name = "" | |
611 | Weight.TopSurface = 0 | |
612 | Weight.BottomSurface = 0 | |
613 | Weight.Shape = "Block" | |
614 | Weight.FormFactor = "Custom" | |
615 | Weight.Size = Vector3.new(1, 1, 1) | |
616 | Weight.Transparency = 1 | |
617 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
618 | Weight.Parent = Character | |
619 | local Weld = Instance.new("Weld") | |
620 | Weld.Part0 = Limb | |
621 | Weld.Part1 = Weight | |
622 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
623 | Weld.Parent = Limb | |
624 | end | |
625 | local Limb = Character:FindFirstChild("Left Leg") | |
626 | if Limb then | |
627 | Limb.Velocity = Torso.Velocity | |
628 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
629 | local Joint = Instance.new("Glue") | |
630 | Joint.Name = "LeftHip" | |
631 | Joint.Part0 = Torso | |
632 | Joint.Part1 = Limb | |
633 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
634 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
635 | Joint.Parent = Torso | |
636 | local Weight = Instance.new("Part") | |
637 | Weight.Name = "" | |
638 | Weight.TopSurface = 0 | |
639 | Weight.BottomSurface = 0 | |
640 | Weight.Shape = "Block" | |
641 | Weight.FormFactor = "Custom" | |
642 | Weight.Size = Vector3.new(1, 1, 1) | |
643 | Weight.Transparency = 1 | |
644 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
645 | Weight.Parent = Character | |
646 | local Weld = Instance.new("Weld") | |
647 | Weld.Part0 = Limb | |
648 | Weld.Part1 = Weight | |
649 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
650 | Weld.Parent = Limb | |
651 | end | |
652 | local Weight = Instance.new("Part") | |
653 | Weight.Name = "" | |
654 | Weight.TopSurface = 0 | |
655 | Weight.BottomSurface = 0 | |
656 | Weight.Shape = "Block" | |
657 | Weight.FormFactor = "Custom" | |
658 | Weight.Size = Vector3.new(1.75, 1.5, 1.1) | |
659 | Weight.Transparency = 1 | |
660 | Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
661 | Weight.Parent = Character | |
662 | local Weld = Instance.new("Weld") | |
663 | Weld.Part0 = Torso | |
664 | Weld.Part1 = Weight | |
665 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
666 | Weld.Parent = Torso | |
667 | end | |
668 | elseif Format == false then | |
669 | if Character:FindFirstChild("Ragdoll") ~= nil then Character.Ragdoll:Remove() end | |
670 | if Torso ~= nil then | |
671 | local Limb = Character:FindFirstChild("Right Arm") | |
672 | if Limb ~= nil then | |
673 | local Joint = Instance.new("Motor6D") | |
674 | Joint.Name = "Right Shoulder" | |
675 | Joint.Part0 = Torso | |
676 | Joint.Part1 = Limb | |
677 | Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
678 | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
679 | Joint.MaxVelocity = 0.15 | |
680 | Joint.Parent = Torso | |
681 | end | |
682 | local Limb = Character:FindFirstChild("Left Arm") | |
683 | if Limb ~= nil then | |
684 | local Joint = Instance.new("Motor6D") | |
685 | Joint.Name = "Left Shoulder" | |
686 | Joint.Part0 = Torso | |
687 | Joint.Part1 = Limb | |
688 | Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
689 | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
690 | Joint.MaxVelocity = 0.15 | |
691 | Joint.Parent = Torso | |
692 | end | |
693 | local Limb = Character:FindFirstChild("Right Leg") | |
694 | if Limb ~= nil then | |
695 | local Joint = Instance.new("Motor6D") | |
696 | Joint.Name = "Right Hip" | |
697 | Joint.Part0 = Torso | |
698 | Joint.Part1 = Limb | |
699 | Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
700 | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
701 | Joint.MaxVelocity = 0.1 | |
702 | Joint.Parent = Torso | |
703 | end | |
704 | local Limb = Character:FindFirstChild("Left Leg") | |
705 | if Limb ~= nil then | |
706 | local Joint = Instance.new("Motor6D") | |
707 | Joint.Name = "Left Hip" | |
708 | Joint.Part0 = Torso | |
709 | Joint.Part1 = Limb | |
710 | Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
711 | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
712 | Joint.MaxVelocity = 0.1 | |
713 | Joint.Parent = Torso | |
714 | end | |
715 | local Animate = Character:FindFirstChild("Animate") | |
716 | if Animate ~= nil then | |
717 | local Animate2 = Animate:Clone() | |
718 | Animate:Remove() | |
719 | Animate2.Parent = Character | |
720 | end | |
721 | end | |
722 | else | |
723 | return false | |
724 | end | |
725 | return true, Format | |
726 | end | |
727 | local Grabbed = false | |
728 | Ctrl = false | |
729 | local lastclick = tick() | |
730 | mouse.Button1Down:connect(function() | |
731 | if tick()-lastclick > .4 then combocounter = 0 end | |
732 | if otheranims then return end | |
733 | if Grabbed then return end | |
734 | if Sheathed then | |
735 | otheranims = true | |
736 | Mode = 'Sheath' | |
737 | wait(.7) | |
738 | ||
739 | raw.Part0 = ra | |
740 | law.Part0 = la | |
741 | raw.C0 = rawc0 | |
742 | law.C0 = lawc0 | |
743 | Sheathed = false | |
744 | ||
745 | otheranims = false | |
746 | ||
747 | return | |
748 | ||
749 | end | |
750 | ||
751 | ||
752 | ||
753 | Slash = true | |
754 | local p0 = rootpart.CFrame*CF(0,0,-7) | |
755 | local p1 = rootpart.CFrame*CF(0,0,-15) | |
756 | if combocounter == 0 and not otheranims then | |
757 | otheranims = true | |
758 | Mode = 'Knee' | |
759 | local asdf = Damage(ll) | |
760 | rootpart.CFrame = rootpart.CFrame:lerp(p0,.1) | |
761 | wait(.3) | |
762 | asdf:disconnect() | |
763 | otheranims = false | |
764 | combocounter = 1 | |
765 | elseif combocounter == 1 and not otheranims then | |
766 | otheranims = true | |
767 | Mode = 'Slash11' | |
768 | wait(.3) | |
769 | Mode = 'Slash12' | |
770 | rootpart.CFrame = rootpart.CFrame:lerp(p0,.1) | |
771 | wait(.3) | |
772 | Mode = 'Slash21' | |
773 | rootpart.CFrame = rootpart.CFrame:lerp(p0,.1) | |
774 | wait(.5) | |
775 | otheranims = false | |
776 | combocounter = 2 | |
777 | elseif combocounter == 2 and not otheranims then | |
778 | otheranims = true | |
779 | Mode = 'Slash31' | |
780 | wait(.3) | |
781 | Mode = 'Slash32' | |
782 | rootpart.CFrame = rootpart.CFrame:lerp(p0,.1) | |
783 | wait(.5) | |
784 | otheranims = false | |
785 | combocounter =3 | |
786 | elseif combocounter == 3 and not otheranims then | |
787 | otheranims = true | |
788 | sDps = Damage(LAH) | |
789 | Mode = 'Bash11' | |
790 | wait(.3) | |
791 | rootpart.CFrame = rootpart.CFrame:lerp(p1,.6) | |
792 | wait(1) | |
793 | sDps:disconnect() | |
794 | otheranims = false | |
795 | combocounter = 0 | |
796 | end | |
797 | ||
798 | Slash = false | |
799 | lastclick = tick() | |
800 | end) | |
801 | ||
802 | ||
803 | function MediumParticleEmit(Object,Color) | |
804 | coroutine.wrap(function() | |
805 | while Wait(3.1)do | |
806 | if not Object then break end | |
807 | local p = Instance.new("Part",Object.Parent) | |
808 | p.Name = "Trail" | |
809 | p.TopSurface = 0 | |
810 | p.BottomSurface = 0 | |
811 | p.Anchored = true | |
812 | p.Material = 'Neon' | |
813 | p.CanCollide = false | |
814 | p.FormFactor = "Custom" | |
815 | p.Size = Vector3.new(0.01,0.01,0.01) | |
816 | p.BrickColor = type(Color)== 'userdata' and Color or BrickColor.new(Color) | |
817 | p.CFrame = Object.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1)-3,math.random(-1,1)) | |
818 | local m = Instance.new("BlockMesh",p) | |
819 | m.Scale = Vector3.new(2,2,2) | |
820 | coroutine.wrap(function() | |
821 | for i = 1,15 do | |
822 | p.Transparency = i/15 | |
823 | m.Scale = m.Scale + Vector3.new(0.1,0.1,0.1) | |
824 | p.CFrame = CFrame.new(p.Position + Vector3.new(math.random(-5,5)/20,0.4,math.random(-5,5)/20))* CFrame.fromEulerAnglesXYZ(math.random(-10,10)/i,math.random(-10,10)/i,0.5) | |
825 | Wait() | |
826 | end | |
827 | p:Destroy() | |
828 | end)() | |
829 | end | |
830 | end)() | |
831 | end | |
832 | ||
833 | function IsNear(Position,Distance,SinglePlayer,db) | |
834 | if SinglePlayer then | |
835 | return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance | |
836 | end | |
837 | local List = {} | |
838 | for i,v in pairs(workspace:GetChildren())do | |
839 | if v:IsA("Model")then | |
840 | if v:findFirstChild("Torso")then | |
841 | --if (v ~= char and not db) then | |
842 | if(v.Torso.CFrame.p -Position).magnitude < Distance then | |
843 | table.insert(List,v) | |
844 | end | |
845 | --end | |
846 | end | |
847 | end | |
848 | end | |
849 | return List | |
850 | end | |
851 | ||
852 | local beaming = false | |
853 | local Shielding = false | |
854 | mouse.KeyDown:connect(function(k) | |
855 | ||
856 | if otheranims then return end | |
857 | if beaming then return end | |
858 | if Shielding then return end | |
859 | ||
860 | if k == 'q' then | |
861 | ||
862 | if Grabbed then return end | |
863 | ||
864 | otheranims = true | |
865 | ||
866 | if not Sheathed then | |
867 | ||
868 | Mode = 'Sheath' | |
869 | wait(.7) | |
870 | ||
871 | raw.Part0 = Torso | |
872 | law.Part0 = Torso | |
873 | raw.C0 = rawc0 * CFrame.new(1.8,3.3,.65) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
874 | law.C0 = lawc0 * CFrame.new(-.3,.5,.25) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
875 | Sheathed = true | |
876 | ||
877 | else | |
878 | ||
879 | Mode = 'Sheath' | |
880 | wait(.7) | |
881 | ||
882 | raw.Part0 = char:findFirstChild('Right Arm') | |
883 | law.Part0 = char:findFirstChild'Left Arm' | |
884 | raw.C0 = rawc0 | |
885 | law.C0 = lawc0 | |
886 | Sheathed = false | |
887 | ||
888 | end | |
889 | ||
890 | otheranims = false | |
891 | ||
892 | elseif k == 'g' then | |
893 | ||
894 | if Sheathed then | |
895 | otheranims = true | |
896 | Mode = 'Sheath' | |
897 | wait(.7) | |
898 | ||
899 | raw.Part0 = ra | |
900 | law.Part0 = la | |
901 | raw.C0 = rawc0 | |
902 | law.C0 = lawc0 | |
903 | Sheathed = false | |
904 | ||
905 | otheranims = false | |
906 | ||
907 | return | |
908 | ||
909 | end | |
910 | ||
911 | otheranims = true | |
912 | ||
913 | Mode = 'Shielding' | |
914 | ||
915 | Shielding = true | |
916 | ||
917 | ||
918 | local storedHp = hum.Health | |
919 | ||
920 | coroutine.wrap(function() | |
921 | local shieldTime = tick() | |
922 | while Shielding do | |
923 | if tick()-shieldTime > 60 then otheranims = false Shielding = false break end | |
924 | hum.Health = storedHp | |
925 | ||
926 | game:service'RunService'.Stepped:wait() | |
927 | end | |
928 | end)() | |
929 | ||
930 | elseif k:byte() == 50 then | |
931 | ||
932 | Ctrl = true | |
933 | ||
934 | elseif k:byte() == 48 then | |
935 | ||
936 | coroutine.wrap(function() | |
937 | for i = 70,60,-1 do | |
938 | camera.FieldOfView = i | |
939 | wait() | |
940 | end | |
941 | end)() | |
942 | ||
943 | hum.WalkSpeed = 18 | |
944 | ||
945 | elseif k=='r' then | |
946 | ||
947 | otheranims = true | |
948 | ||
949 | Mode = 'Stomp1' | |
950 | ||
951 | wait(.5) | |
952 | ||
953 | Mode = 'Stomp2' | |
954 | ||
955 | local Charging = true | |
956 | ||
957 | pt=Instance.new('Part',Torso) | |
958 | pt.Anchored=true | |
959 | pt.CanCollide=false | |
960 | pt.Locked = true | |
961 | pt.Material = "Neon" | |
962 | pt.FormFactor='Custom' | |
963 | pt.Size=Vector3.new(1,1,1) | |
964 | pt.CFrame=rootpart.CFrame*CFrame.new(0,-1,0) | |
965 | pt.Transparency=.6 | |
966 | pt.BrickColor = BrickColor.new("Bright green") | |
967 | msh=Instance.new('SpecialMesh',pt) | |
968 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
969 | msh.Scale=Vector3.new(10,2,10) | |
970 | pt2=pt:clone() | |
971 | pt2.Parent = Torso | |
972 | pt2.CFrame=rootpart.CFrame*CFrame.new(0,-1,0) | |
973 | pt2.BrickColor = BrickColor.new("Really black") | |
974 | msh2=msh:clone() | |
975 | msh2.Parent=pt2 | |
976 | msh2.Scale=Vector3.new(10,2,10) | |
977 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
978 | bl = Instance.new("Part", char) | |
979 | bl.Locked = true | |
980 | bl.Name = "Shell" | |
981 | bl.BrickColor = BrickColor.new("Really black") | |
982 | bl.Anchored = true | |
983 | bl.Material = "Neon" | |
984 | bl.CanCollide = false | |
985 | bl.Transparency = 0 | |
986 | bl.Reflectance = 0 | |
987 | bl.BottomSurface = 0 | |
988 | bl.TopSurface = 0 | |
989 | bl.Shape = 0 | |
990 | blm = Instance.new("SpecialMesh",bl) | |
991 | blm.MeshType = "Sphere" | |
992 | blm.Scale = Vector3.new(1,1,1) | |
993 | ||
994 | coroutine.resume(coroutine.create(function() | |
995 | for i=1, math.huge, 4 do | |
996 | if Charging == true then | |
997 | game:service'RunService'.Stepped:wait() | |
998 | bl.CFrame = rootpart.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
999 | blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1000 | bl.Transparency = bl.Transparency + 0.05 | |
1001 | pt.CFrame = rootpart.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
1002 | pt2.CFrame = rootpart.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
1003 | msh.Scale = msh.Scale + Vector3.new(0.7,0,0.7) | |
1004 | msh2.Scale = msh2.Scale + Vector3.new(0.7,0,0.7) | |
1005 | pt.Transparency = pt.Transparency + 0.015 | |
1006 | pt2.Transparency = pt2.Transparency + 0.015 | |
1007 | elseif Charging == false then break | |
1008 | end | |
1009 | end | |
1010 | end)) | |
1011 | local Damaged = {} | |
1012 | coroutine.wrap(function() | |
1013 | for i,v in pairs(IsNear(Torso.Position, 25, nil, true)) do | |
1014 | if v~=Char then | |
1015 | if Damaged[v:FindFirstChild('Humanoid')] and tick()-Damaged[v:FindFirstChild('Humanoid')] < .25 then return end | |
1016 | v:FindFirstChild('Humanoid').Health = v:findFirstChild('Humanoid').Health - 25 | |
1017 | v:findFirstChild'Humanoid'.PlatformStand = true | |
1018 | local vu = Instance.new("BodyVelocity",v:findFirstChild'Torso') | |
1019 | vu.P = 500 | |
1020 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
1021 | vu.velocity = Head.CFrame.lookVector*80 | |
1022 | game:GetService("Debris"):AddItem(vu,0.267) | |
1023 | Damaged[v:FindFirstChild('Humanoid')] = tick() | |
1024 | end | |
1025 | end | |
1026 | end)() | |
1027 | ||
1028 | Spawn(function() | |
1029 | while game:service'RunService'.Stepped:wait() do | |
1030 | if p and p.Transparency >= 1 then pcall(function() p:Destroy() end) break end | |
1031 | if not p then break end | |
1032 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
1033 | p.Transparency = p.Transparency+0.01 | |
1034 | end | |
1035 | end) | |
1036 | ||
1037 | wait(1) | |
1038 | ||
1039 | pt:Destroy() | |
1040 | pt2:Destroy() | |
1041 | bl:Destroy() | |
1042 | ||
1043 | Charging = false | |
1044 | otheranims = false | |
1045 | ||
1046 | elseif k=='e' then | |
1047 | ||
1048 | local function weld5(part0, part1, c0, c1) | |
1049 | weeld=Instance.new("Weld", part0) | |
1050 | weeld.Part0=part0 | |
1051 | weeld.Part1=part1 | |
1052 | weeld.C0=c0 | |
1053 | weeld.C1=c1 | |
1054 | return weeld | |
1055 | end | |
1056 | ||
1057 | if not Sheathed then | |
1058 | ||
1059 | otheranims = true | |
1060 | ||
1061 | Mode = 'Sheath' | |
1062 | wait(.7) | |
1063 | ||
1064 | raw.Part0 = Torso | |
1065 | law.Part0 = Torso | |
1066 | raw.C0 = rawc0 * CFrame.new(1.8,3.3,.65) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
1067 | law.C0 = lawc0 * CFrame.new(-.3,.5,.25) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
1068 | Sheathed = true | |
1069 | ||
1070 | otheranims = false | |
1071 | ||
1072 | return | |
1073 | ||
1074 | end | |
1075 | ||
1076 | if not Grabbed then | |
1077 | ||
1078 | otheranims = true | |
1079 | ||
1080 | Mode = 'Grabbing' | |
1081 | ||
1082 | con1=ra.Touched:connect(function(hit) | |
1083 | if hit:IsDescendantOf(Char) then return end | |
1084 | ht = hit.Parent | |
1085 | hum1=ht:FindFirstChild('Humanoid') | |
1086 | if hum1 ~= nil then | |
1087 | hum1.Changed:connect(function(a) | |
1088 | if not hum1 then return end | |
1089 | if a=='PlatformStand' then | |
1090 | hum1.PlatformStand = true | |
1091 | elseif a=='Jump' then | |
1092 | hum1.Jump = false | |
1093 | elseif a == 'WalkSpeed' then | |
1094 | hum1.WalkSpeed = 0 | |
1095 | elseif a == 'JumpPower' then | |
1096 | hum1.JumpPower = 0 | |
1097 | end | |
1098 | end) | |
1099 | hum1.PlatformStand = true | |
1100 | hum1.Jump = false | |
1101 | hum1.WalkSpeed = 0 | |
1102 | hum1.JumpPower = 0 | |
1103 | gp = ht | |
1104 | local asde=weld5(ra,ht:FindFirstChild("Torso"),CFrame.new(0,-1.3,0),CFrame.new(0,0,0)) | |
1105 | asde.Parent = ra | |
1106 | asde.Name = "asde" | |
1107 | asde.C0=asde.C0*CFrame.Angles(math.rad(-90),math.rad(0),0) | |
1108 | Grabbed = true | |
1109 | end | |
1110 | end) | |
1111 | ||
1112 | wait(.5) | |
1113 | ||
1114 | con1:disconnect() | |
1115 | ||
1116 | otheranims = false | |
1117 | ||
1118 | else | |
1119 | ||
1120 | otheranims = true | |
1121 | pcall(function() | |
1122 | repeat ht:findFirstChild'Humanoid'.Health = ht:findFirstChild'Humanoid'.Health-(ht:findFirstChild'Humanoid'.MaxHealth*0.01) | |
1123 | game:service'RunService'.Stepped:wait() | |
1124 | hum:TakeDamage(-5) | |
1125 | until ht:findFirstChild'Humanoid'.Health <= (ht:findFirstChild'Humanoid'.MaxHealth*.015) | |
1126 | end) | |
1127 | ||
1128 | Mode = 'Slash11' | |
1129 | ||
1130 | wait(.4) | |
1131 | ||
1132 | Mode = 'Throw1' | |
1133 | ||
1134 | pcall(function() ra:findFirstChild'asde':Destroy() end) | |
1135 | ||
1136 | ||
1137 | local vu = Instance.new("BodyVelocity",ht.Torso) | |
1138 | vu.P = 500 | |
1139 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
1140 | vu.velocity = Head.CFrame.lookVector*100 | |
1141 | game:GetService("Debris"):AddItem(vu,0.267) | |
1142 | ||
1143 | wait(.5) | |
1144 | ||
1145 | Ragdoll(true, ht) | |
1146 | ht:findFirstChild'Humanoid'.PlatformStand =true | |
1147 | ||
1148 | coroutine.wrap(function() | |
1149 | wait(5) | |
1150 | ht:breakJoints'' | |
1151 | end)() | |
1152 | ||
1153 | Grabbed = false | |
1154 | ||
1155 | otheranims = false | |
1156 | ||
1157 | end | |
1158 | ||
1159 | elseif k=='f' then | |
1160 | ||
1161 | otheranims = true | |
1162 | ||
1163 | if Grabbed then return end | |
1164 | ||
1165 | if not Sheathed then | |
1166 | ||
1167 | ||
1168 | Mode = 'Sheath' | |
1169 | wait(.7) | |
1170 | ||
1171 | raw.Part0 = Torso | |
1172 | law.Part0 = Torso | |
1173 | raw.C0 = rawc0 * CFrame.new(1.8,3.3,.65) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
1174 | law.C0 = lawc0 * CFrame.new(-.3,.5,.25) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
1175 | Sheathed = true | |
1176 | ||
1177 | otheranims = false | |
1178 | ||
1179 | return | |
1180 | ||
1181 | end | |
1182 | ||
1183 | Mode = 'Beam' | |
1184 | ||
1185 | hum.WalkSpeed = 0 | |
1186 | local m0del = Instance.new('Model',char) | |
1187 | local wave = Instance.new('Part',m0del) | |
1188 | wave.CFrame = char.Head.CFrame * CFrame.new(0, 0, -10) | |
1189 | wave.TopSurface = 'Smooth' | |
1190 | wave.BottomSurface = 'Smooth' | |
1191 | wave.BrickColor = BrickColor.new('Bright green') | |
1192 | wave.Anchored = true | |
1193 | wave.FormFactor = 'Custom' | |
1194 | wave.Shape = 'Ball' | |
1195 | wave.CanCollide = false | |
1196 | wave.Transparency = 1 | |
1197 | wave.Material = 'Neon' | |
1198 | wave.Size = Vector3.new(.4, .4, .4) | |
1199 | local needaloop = true | |
1200 | beaming = true | |
1201 | local coro = coroutine.resume(coroutine.create(function() | |
1202 | while needaloop do | |
1203 | game:service'RunService'.Stepped:wait() | |
1204 | local c = char | |
1205 | local radius = 25 | |
1206 | local pos = wave.CFrame * CFrame.new(0,0,20) | |
1207 | local clrz = {'Really black','Bright green'}; | |
1208 | for i = 1,1 do | |
1209 | local clr = clrz[math.random(1,#clrz)] | |
1210 | pos = wave.CFrame * CFrame.new(0,0,2) | |
1211 | local p = Instance.new('Part',c) | |
1212 | local mafa = math.random(-360,360) | |
1213 | p.CanCollide = false | |
1214 | p.Size = Vector3.new(1.3,1.3,1.3) | |
1215 | local m = Instance.new('SpecialMesh',p) | |
1216 | m.MeshType = 'Sphere' | |
1217 | spawn(function() | |
1218 | for i = 0,50 do | |
1219 | local int,int2 = .05,.05 | |
1220 | m.Scale = m.Scale - Vector3.new(int,int,int) | |
1221 | p.Transparency = p.Transparency + int2 | |
1222 | game:service'RunService'.Stepped:wait() | |
1223 | end | |
1224 | pcall(function() | |
1225 | p:Destroy() | |
1226 | end) | |
1227 | end) | |
1228 | p.BrickColor = BrickColor.new(clr) | |
1229 | p.Material = 'Neon' | |
1230 | p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa) | |
1231 | local bp = Instance.new('BodyPosition',p) | |
1232 | bp.MaxForce = Vector3.new(1/0,1/0,1/0) | |
1233 | bp.D = 100 | |
1234 | bp.P = 300 | |
1235 | bp.Position = pos.p | |
1236 | game.Debris:AddItem(p,10) | |
1237 | end | |
1238 | end | |
1239 | end)) | |
1240 | local nbeamy = beamy:Clone() | |
1241 | nbeamy.Parent = char | |
1242 | --beamy.FireFrom.Anchored = true | |
1243 | coroutine.wrap(function() | |
1244 | local Ringz = {} | |
1245 | ||
1246 | for i,v in pairs(nbeamy:children'') do | |
1247 | if v.Name:lower():find'ring' then | |
1248 | table.insert(Ringz, v) | |
1249 | end | |
1250 | end | |
1251 | ||
1252 | local Rot = 0 | |
1253 | ||
1254 | while nbeamy do | |
1255 | ||
1256 | Rot = Rot + .035 | |
1257 | ||
1258 | if Rot >= 360 then Rot = 0 end | |
1259 | ||
1260 | for q,e in pairs(Ringz) do | |
1261 | pcall(function() | |
1262 | if e.Name~='Ring7' then | |
1263 | e["qCFrameWeldThingy"].C0 = e["qCFrameWeldThingy"].C0 * CFrame.Angles(0,0,math.rad((e.Name ~= 'Ring4' and Rot or -Rot))) | |
1264 | end | |
1265 | end) | |
1266 | end | |
1267 | ||
1268 | game:service'RunService'.Stepped:wait() | |
1269 | ||
1270 | end | |
1271 | ||
1272 | end)() | |
1273 | local bp = Instance.new('BodyPosition',nbeamy.FireFrom) | |
1274 | bp.MaxForce = Vector3.new(1/0,1/0,1/0) | |
1275 | bp.D = 100 | |
1276 | bp.P = 1000 | |
1277 | bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p | |
1278 | for awe = 1, 250 do | |
1279 | wave.CFrame = char.Head.CFrame * CFrame.new(10, 20, -5) | |
1280 | nbeamy.FireFrom.CFrame = nbeamy.FireFrom.CFrame:lerp(CFrame.new(wave.CFrame.p, mouse.Hit.p) * CFrame.Angles(math.rad(180), 0, 0),1) | |
1281 | bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p | |
1282 | wave.Size = Vector3.new(wave.Size.X+.1, wave.Size.Y+.1, wave.Size.Z+.1) | |
1283 | game:service'RunService'.Stepped:wait() | |
1284 | end | |
1285 | needaloop = false | |
1286 | local beam = Instance.new('Part',m0del) | |
1287 | beam.TopSurface = 'Smooth' | |
1288 | beam.BottomSurface = 'Smooth' | |
1289 | beam.Material = 'Neon' | |
1290 | beam.Transparency = .6 | |
1291 | beam.Anchored = true | |
1292 | beam.BrickColor = BrickColor.new('Bright green') | |
1293 | beam.CanCollide = false | |
1294 | local mesh = Instance.new('CylinderMesh',beam) | |
1295 | local realbeam = beam:Clone() | |
1296 | realbeam.Parent = m0del | |
1297 | realbeam.Color = Color3.new(0,200/255,0) | |
1298 | realbeam.Transparency = .1 | |
1299 | realbeam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1300 | beam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1301 | beam.Size = Vector3.new(23, 10/2, 23) | |
1302 | realbeam.Size = Vector3.new(24, 10/2, 24) | |
1303 | local p = wave:Clone() | |
1304 | p.Parent = m0del | |
1305 | p.Anchored = true | |
1306 | p.Transparency = 1 | |
1307 | p.Size = Vector3.new(10, 10, 10) | |
1308 | local Damaged = {} | |
1309 | for HAAA = 1, 500 do | |
1310 | local starthere = (char.Head.CFrame * CFrame.new(10, 20, -5)) | |
1311 | local idek = Ray.new(starthere.p,(mouse.Hit.p-starthere.p).unit*1000) | |
1312 | local thx = {char, m0del} | |
1313 | table.insert(thx, p) | |
1314 | local Bonk, ovhere = workspace:FindPartOnRayWithIgnoreList(idek, thx) | |
1315 | local meg | |
1316 | p.Transparency = 1 | |
1317 | if Bonk and Bonk.Parent:findFirstChild'Humanoid' then | |
1318 | local dionamuh = Bonk.Parent:findFirstChild'Humanoid' | |
1319 | if Damaged[dionamuh] and tick()-Damaged[dionamuh]>.05 then | |
1320 | Damaged[dionamuh] = tick() | |
1321 | pcall(function() dionamuh.Health = dionamuh.Health-2 end) | |
1322 | elseif not Damaged[dionamuh] then | |
1323 | Damaged[dionamuh] = tick() | |
1324 | end | |
1325 | end | |
1326 | meg = (starthere.p - ovhere).magnitude | |
1327 | coroutine.wrap(function() | |
1328 | local asd = Instance.new('Part', char) | |
1329 | asd.CFrame = CFrame.new(ovhere)*CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
1330 | asd.Size = Vector3.new(5,5,5) | |
1331 | asd.Reflectance = .40 | |
1332 | asd.Transparency = .05 | |
1333 | asd.TopSurface,asd.BottomSurface = 0,0 | |
1334 | asd.CanCollide = false | |
1335 | asd.Color = Color3.new(0,150/255,0) | |
1336 | asd.Anchored = true | |
1337 | asd.Locked = true--[[ | |
1338 | asd.Touched:connect(function(a) | |
1339 | if a and a.Parent:findFirstChild'Humanoid' then | |
1340 | local dionamuh = a.Parent:findFirstChild'Humanoid' | |
1341 | if Damaged[dionamuh] and tick()-Damaged[dionamuh]>.05 then | |
1342 | Damaged[dionamuh] = tick() | |
1343 | pcall(function() dionamuh.Health = dionamuh.Health-2 end) | |
1344 | elseif not Damaged[dionamuh] then | |
1345 | Damaged[dionamuh] = tick() | |
1346 | end | |
1347 | end | |
1348 | end)]] | |
1349 | wait() | |
1350 | for i = .05,1,.05 do | |
1351 | asd.Transparency = i | |
1352 | asd.Size = asd.Size + Vector3.new(.2, .2, .2) | |
1353 | game:service'RunService'.Stepped:wait() | |
1354 | end | |
1355 | asd:Destroy() | |
1356 | end)() | |
1357 | game:service'RunService'.Stepped:wait() | |
1358 | realbeam.Size = Vector3.new(7/2, meg, 7/2) | |
1359 | beam.Size = Vector3.new(5/2, meg, 5/2) | |
1360 | realbeam.CFrame = CFrame.new(starthere.p, ovhere) * CFrame.new(0,0,-meg/2) * CFrame.Angles(math.rad(90), 0, 0) | |
1361 | beam.CFrame = CFrame.new(starthere.p, ovhere) * CFrame.new(0,0,-meg/2) * CFrame.Angles(math.rad(90), 0, 0) | |
1362 | pcall(function()nbeamy.FireFrom.CFrame = nbeamy.FireFrom.CFrame:lerp(CFrame.new(starthere.p, ovhere) * CFrame.new(0,0,2) * CFrame.Angles(math.rad(180), 0, 0),1) end) | |
1363 | bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p | |
1364 | wave.CFrame = starthere | |
1365 | end | |
1366 | nbeamy.FireFrom.Anchored = true | |
1367 | p:Destroy() | |
1368 | for i = 0,1,.05 do | |
1369 | realbeam.Transparency = i | |
1370 | wave.Transparency = i | |
1371 | beam.Transparency = i | |
1372 | game:service'RunService'.Stepped:wait() | |
1373 | end | |
1374 | nbeamy:Destroy() | |
1375 | beaming = false | |
1376 | m0del:Destroy() | |
1377 | hum.WalkSpeed = 8 | |
1378 | ||
1379 | otheranims = false | |
1380 | ||
1381 | elseif k=='c' then | |
1382 | ||
1383 | if Sheathed then | |
1384 | otheranims = true | |
1385 | Mode = 'Sheath' | |
1386 | wait(.7) | |
1387 | ||
1388 | raw.Part0 = ra | |
1389 | law.Part0 = la | |
1390 | raw.C0 = rawc0 | |
1391 | law.C0 = lawc0 | |
1392 | Sheathed = false | |
1393 | ||
1394 | otheranims = false | |
1395 | ||
1396 | return | |
1397 | ||
1398 | end | |
1399 | ||
1400 | ||
1401 | otheranims = true | |
1402 | ||
1403 | hum.WalkSpeed = 0 | |
1404 | ||
1405 | Mode = 'Stabbing1' | |
1406 | ||
1407 | wait(.7) | |
1408 | ||
1409 | Mode = 'Stabbing2' | |
1410 | ||
1411 | local Parts = {} | |
1412 | ||
1413 | local Damaged = {} | |
1414 | ||
1415 | for i = 1, 360, 20 do | |
1416 | ||
1417 | local s = Instance.new('Part', char) | |
1418 | table.insert(Parts, s) | |
1419 | s.Name = 'Spikey' | |
1420 | s.CFrame = Torso.CFrame * CFrame.new(0, -10, 0) | |
1421 | s.Size = Vector3.new(1,1,1) | |
1422 | s.CanCollide = false | |
1423 | s.Anchored = true | |
1424 | s.BrickColor = BrickColor.new("Bright green") | |
1425 | s.Locked = true | |
1426 | s.Name = 's' | |
1427 | s.Material = 'Neon' | |
1428 | s.Size = Vector3.new(1, 1, 1) | |
1429 | s.BottomSurface = Enum.SurfaceType.Smooth | |
1430 | s.TopSurface = Enum.SurfaceType.Smooth | |
1431 | local PurpleMesh = Instance.new("SpecialMesh", s) | |
1432 | PurpleMesh.MeshType = Enum.MeshType.FileMesh | |
1433 | PurpleMesh.Name = "Mesh" | |
1434 | PurpleMesh.Scale = Vector3.new(.5,.5,.5) | |
1435 | PurpleMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
1436 | PurpleMesh.VertexColor = Vector3.new(1, 0, 1) | |
1437 | ||
1438 | local qwe = -10 | |
1439 | ||
1440 | coroutine.wrap(function() | |
1441 | while s do | |
1442 | if qwe>=-1 then qwe=0 else qwe=qwe+.4 end | |
1443 | s.CFrame = s.CFrame:lerp(CFrame.new(Torso.CFrame.p)*CFrame.new(0, qwe, 0) | |
1444 | * (CFrame.Angles(0,0,0)) | |
1445 | *CFrame.Angles(0,math.rad(i),0) | |
1446 | *CFrame.new(0,0,-20), .3) | |
1447 | game:service'RunService'.Stepped:wait() | |
1448 | end | |
1449 | end)() | |
1450 | ||
1451 | coroutine.wrap(function() | |
1452 | repeat wait() until qwe>=-1 | |
1453 | for i = .5, 2, .025 do | |
1454 | PurpleMesh.Scale = Vector3.new(i, i*2 ,i) | |
1455 | game:service'RunService'.Stepped:wait() | |
1456 | end | |
1457 | local it=Instance.new | |
1458 | local vt=Vector3.new | |
1459 | local cf=CFrame.new | |
1460 | local euler=CFrame.fromEulerAnglesXYZ | |
1461 | local angles=CFrame.Angles | |
1462 | local function NoOutline(Part) | |
1463 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1464 | end | |
1465 | local function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
1466 | local fp=Instance.new("Part") | |
1467 | fp.formFactor=formfactor | |
1468 | fp.Parent=parent | |
1469 | fp.Reflectance=reflectance | |
1470 | fp.Transparency=transparency | |
1471 | fp.CanCollide=false | |
1472 | fp.Locked=true | |
1473 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
1474 | fp.Name=name | |
1475 | fp.Size=size | |
1476 | fp.Position=Torso.Position | |
1477 | --NoOutline(fp) | |
1478 | fp.Material=material | |
1479 | fp:BreakJoints() | |
1480 | return fp | |
1481 | end | |
1482 | local function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1483 | local mesh=it(Mesh) | |
1484 | mesh.Parent=part | |
1485 | if Mesh=="SpecialMesh" then | |
1486 | mesh.MeshType=meshtype | |
1487 | mesh.MeshId=meshid | |
1488 | end | |
1489 | mesh.Offset=offset | |
1490 | mesh.Scale=scale | |
1491 | return mesh | |
1492 | end | |
1493 | ||
1494 | local function weld(parent,part0,part1,c0,c1) | |
1495 | local weld=it("Weld") | |
1496 | weld.Parent=parent | |
1497 | weld.Part0=part0 | |
1498 | weld.Part1=part1 | |
1499 | weld.C0=c0 | |
1500 | weld.C1=c1 | |
1501 | return weld | |
1502 | end | |
1503 | local function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
1504 | local prt=part("Custom",char,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1505 | prt.Anchored=true | |
1506 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1507 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1508 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
1509 | CF=Part.CFrame | |
1510 | Numbb=0 | |
1511 | randnumb=math.random()-math.random() | |
1512 | for i=0,1,0.05 do | |
1513 | wait() | |
1514 | CF=CF*cf(0,1,0) | |
1515 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
1516 | Part.CFrame=CF*euler(Numbb,0,0) | |
1517 | Part.Transparency=i | |
1518 | Numbb=Numbb+randnumb | |
1519 | end | |
1520 | Part.Parent = nil | |
1521 | end),prt) | |
1522 | end | |
1523 | for i = 1,3 do | |
1524 | BreakEffect(BrickColor.new("Bright green"),s.CFrame,0.5,math.random(5,10),0.5) | |
1525 | end | |
1526 | coroutine.wrap(function() | |
1527 | for i,v in pairs(IsNear(Torso.Position, 35, nil, true)) do | |
1528 | if v~=Char then | |
1529 | if Damaged[v:FindFirstChild('Humanoid')] and tick()-Damaged[v:FindFirstChild('Humanoid')] < .5 then return end | |
1530 | v:FindFirstChild('Humanoid').Health = v:findFirstChild('Humanoid').Health - 25 | |
1531 | v:findFirstChild'Humanoid'.PlatformStand = true | |
1532 | local vu = Instance.new("BodyVelocity",v:findFirstChild'Torso') | |
1533 | vu.P = 500 | |
1534 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
1535 | vu.velocity = Head.CFrame.lookVector*60 | |
1536 | game:GetService("Debris"):AddItem(vu,0.267) | |
1537 | Damaged[v:FindFirstChild('Humanoid')] = tick() | |
1538 | end | |
1539 | end | |
1540 | end)() | |
1541 | s:Destroy() | |
1542 | end)() | |
1543 | ||
1544 | game:service'RunService'.Stepped:wait() | |
1545 | end | |
1546 | ||
1547 | wait(3) | |
1548 | ||
1549 | hum.WalkSpeed = 8 | |
1550 | ||
1551 | otheranims = false | |
1552 | ||
1553 | end | |
1554 | end) | |
1555 | ||
1556 | mouse.KeyUp:connect(function(k) | |
1557 | if k:byte() == 48 then | |
1558 | coroutine.wrap(function() | |
1559 | for i = 60,70,1 do | |
1560 | camera.FieldOfView = i | |
1561 | wait() | |
1562 | end | |
1563 | end)() | |
1564 | hum.WalkSpeed = 8 | |
1565 | elseif k:byte() == 50 then | |
1566 | Ctrl = false | |
1567 | elseif k == 'g' then | |
1568 | Shielding = false | |
1569 | otheranims = false | |
1570 | end | |
1571 | end) | |
1572 | ||
1573 | game.Lighting.TimeOfDay = "06:10:00" | |
1574 | pcall(game.Destroy, game:service'Lighting':findFirstChild'SunRayz') | |
1575 | ||
1576 | local sr = Instance.new('SunRaysEffect',game.Lighting) | |
1577 | sr.Intensity = .1 | |
1578 | sr.Name = 'SunRayz' | |
1579 | ||
1580 | hum.JumpPower = 10 --10 | |
1581 | Jumping = false | |
1582 | lastCtrl = tick() | |
1583 | Character.Humanoid.Jumping:connect(function() | |
1584 | if Jumping then return end | |
1585 | local eCtrl = Ctrl | |
1586 | if eCtrl then if tick()-lastCtrl < 0.2 then eCtrl = false end lastCtrl = tick() end | |
1587 | Mode = 'Jumping' | |
1588 | Jumping = true | |
1589 | local vu = Instance.new("BodyVelocity",Torso) | |
1590 | vu.P = 500 | |
1591 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
1592 | vu.velocity = Vector3.new((Head.CFrame.lookVector.X*(eCtrl and 60 or 10)),(eCtrl and 10 or 20),(Head.CFrame.lookVector.Z*(eCtrl and 60 or 10))) | |
1593 | game:GetService("Debris"):AddItem(vu,0.267) | |
1594 | wait(0.7) --0.6 | |
1595 | Jumping = false | |
1596 | end) | |
1597 | ||
1598 | spawn(function() | |
1599 | while true do | |
1600 | local Size = Vector3.new(TrailPart.Size.X,TrailPart.Size.Y,TrailPart.Size.Z) | |
1601 | if Slash == true then | |
1602 | local P1 = (TrailPart.CFrame*CFrame.new(Size/2)).p | |
1603 | local P2 = (TrailPart.CFrame*CFrame.new(Size/-2)).p | |
1604 | if LastTrail then | |
1605 | local p1 = CreateTriangle(Char,LastTrail[2],LastTrail[1],P2) | |
1606 | local p2 = CreateTriangle(Char,LastTrail[1],P1,P2) | |
1607 | Trails[#Trails+1] = p1 | |
1608 | Trails[#Trails+1] = p2 | |
1609 | end | |
1610 | LastTrail = {P1,P2} | |
1611 | else | |
1612 | LastTrail = nil | |
1613 | end | |
1614 | for i,v in pairs(Trails) do | |
1615 | v:SetProperty("Transparency",v:GetProperty("Transparency")+0.1) | |
1616 | if v:GetProperty("Transparency") >= 1 then | |
1617 | v:Destroy() | |
1618 | Trails[i] = nil | |
1619 | end | |
1620 | end | |
1621 | rwait(.5) | |
1622 | end | |
1623 | end) | |
1624 | ||
1625 | ||
1626 | ||
1627 | SlashDamage = Damage(TrailPart) | |
1628 | ||
1629 | local count = 0 | |
1630 | ||
1631 | local t = tick() | |
1632 | local Smooth = 1 | |
1633 | --------------------------- | |
1634 | local sine = 0 | |
1635 | local change = 1 | |
1636 | coroutine.wrap(function() | |
1637 | game:service('RunService').Heartbeat:connect(function() | |
1638 | local torso = char:FindFirstChild('Torso') | |
1639 | local mg = Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude | |
1640 | if not otheranims then | |
1641 | if (mg < 3) and not Jumping then | |
1642 | Mode = "Idling" | |
1643 | elseif (mg > 3 and mg < 10) and not Jumping then | |
1644 | Mode = "Walking" | |
1645 | elseif (mg > 10) and not Jumping then | |
1646 | Mode = "Running" | |
1647 | elseif Jumping and (Vector3.new(0, torso.Velocity.y, 0).magnitude > 2) and (mg > 1) then | |
1648 | Mode = "Jumping" | |
1649 | end | |
1650 | end | |
1651 | count = (count % 100) + (0.2)*(hum.WalkSpeed)/(5*1.3)--countspeed --1 | |
1652 | angle = math.pi * math.sin(math.pi*2/100*count) | |
1653 | t = t+0.2*Smooth | |
1654 | sine = sine + change | |
1655 | --if (Mode=='Idling') and (tick()-lastdps < 30 and tick()-lastclick < 30) and not otheranims then Mode='CombatIdling' end | |
1656 | ||
1657 | if Mode == 'Jumping' then | |
1658 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,.6,-.6) * CFrame.Angles(0,-math.rad(10),0), .4) | |
1659 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,.4,-.3), .4) | |
1660 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), 0, 0), .4) | |
1661 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(-math.rad(20), 0, -math.rad(30)), .4) | |
1662 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(-math.rad(20), 0, math.rad(30)), .4) | |
1663 | lerp(rj, rj.C0, rootc0 * CFrame.Angles(math.rad(20), 0, 0), .4) | |
1664 | elseif Mode == 'Idling' then --stand | |
1665 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,math.sin(t/20)/7,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3) | |
1666 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,math.sin(t/20)/7,0) * CFrame.Angles(0, 0, -math.rad(8)),.3) | |
1667 | if not Sheathed then | |
1668 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,-math.cos(t/20)/7,0) * CFrame.Angles(-1*math.cos(t/20)/7, -math.rad(15), 0),.2) | |
1669 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.sin(t/20)/7, -math.rad(5), -math.rad(20)),.2) | |
1670 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/20)/7, math.rad(5), math.rad(20)),.2) | |
1671 | lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,-math.sin(t/20)/7) * CFrame.Angles(0,0,math.rad(15)),.3) | |
1672 | lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1) | |
1673 | else | |
1674 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,-math.sin(t/20)/15,0) * CFrame.Angles(-2*math.cos(t/15)/20, -math.rad(5), 0),.2) | |
1675 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(math.sin(t/20)/20, -math.rad(5), -math.rad(10)),.2) | |
1676 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(Grabbed and 120 or 0) + math.sin(t/20)/15, math.rad(5), math.rad(Grabbed and 20 or 0) + math.rad(10)),.2) | |
1677 | lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,-math.sin(t/20)/15) * CFrame.Angles(0,0,math.rad(5)),.3) | |
1678 | end | |
1679 | elseif Mode == 'Walking' then-- walk | |
1680 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4) | |
1681 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4) | |
1682 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),0.2) | |
1683 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, .03*math.cos(sine/9), -math.sin(sine/20)/6) * CFrame.Angles(-math.rad(20*math.cos(sine/17)), math.rad(0), -math.rad(12)), 0.2) | |
1684 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, .03*math.cos(sine/9), math.sin(sine/20)/6) * CFrame.Angles(math.rad(Grabbed and 120 or 0) + math.rad(20*math.cos(sine/17)), math.rad(0), math.rad(Grabbed and 20 or 0) + math.rad(12)), 0.2) | |
1685 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), 0.2) | |
1686 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1) end | |
1687 | elseif Mode == 'Running' then-- walk | |
1688 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/10)/2, -.05 + -math.sin(sine/10)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/10)/2, 0, 0), .4) | |
1689 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/10)/2, -.05 + math.sin(sine/10)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/10)/2, 0, 0), .4) | |
1690 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(6+6*math.cos(sine/10)/2), math.rad(0), math.rad(0)),0.2) | |
1691 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.rad(-10-20*math.cos(sine/10)/5), -math.rad(-40+10*math.cos(sine/10)/5), -math.rad(50-10*math.cos(sine/10)/5)), 0.2) | |
1692 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(-10-20*math.cos(sine/10)/5), math.rad(-40+10*math.cos(sine/10)/5), math.rad(50-10*math.cos(sine/10)/5)), 0.2) | |
1693 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1+0.2*math.cos(sine/10)/2, 0) * CFrame.Angles(math.rad(14+10*math.cos(sine/10)/2), -math.cos(t/6)/30+math.sin(rootpart.RotVelocity.y/2)/6, math.rad(0)), 0.2) | |
1694 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1) end | |
1695 | elseif Mode == 'Sheath' then | |
1696 | if (mg > 3 and mg < 18) then | |
1697 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4) | |
1698 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4) | |
1699 | else | |
1700 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,math.sin(t/15)/15,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3) | |
1701 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,math.sin(t/15)/15,0) * CFrame.Angles(0, 0, -math.rad(8)),.3) | |
1702 | end | |
1703 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,math.sin(t/15)/15,0) * CFrame.Angles(-1*math.cos(t/25)/10, -math.rad(15), 0),.2) | |
1704 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.rad(10), math.rad(120), -math.rad(60)),.2) | |
1705 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, .6, -.2) * CFrame.Angles(math.rad(175), math.rad(0), math.rad(20)),.2) | |
1706 | lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,-math.sin(t/15)/15) * CFrame.Angles(0,0,math.rad(15)),.3) | |
1707 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-.5, -1.6, -.85) * CFrame.Angles(math.rad(92),math.rad(26),math.rad(90)), 1 ) end | |
1708 | elseif Mode == 'Slash11' then | |
1709 | ||
1710 | if (mg > 3) then | |
1711 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),.6) | |
1712 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), .6) | |
1713 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .6) | |
1714 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .6) | |
1715 | else | |
1716 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), .6) | |
1717 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .2, -.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .6) | |
1718 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30),-math.rad(0)), .6) | |
1719 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), .6) | |
1720 | end | |
1721 | ||
1722 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), .6) | |
1723 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(60), -math.rad(60), math.rad(110)), .6) | |
1724 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1.2, 0) * CFrame.Angles(-math.rad(20), 0, math.rad(90)), 1) end | |
1725 | elseif Mode == 'Slash12' then | |
1726 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(60), math.rad(10)), .6) | |
1727 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(-math.rad(10), math.rad(0), -math.rad(10)), .6) | |
1728 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(30), -math.rad(70), math.rad(30)),.6) | |
1729 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), .6) | |
1730 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(50), math.rad(40)), .6) | |
1731 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(90)), .6) | |
1732 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, -.5) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(60)), 1) end | |
1733 | elseif Mode == 'Slash31' then | |
1734 | ||
1735 | if (mg > 3) then | |
1736 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),.6) | |
1737 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), .6) | |
1738 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .6) | |
1739 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .6) | |
1740 | else | |
1741 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .5, -.3) * CFrame.Angles(math.rad(10), 0, 0), .4) | |
1742 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(0), math.rad(5), -math.rad(5)), .4) | |
1743 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(15), math.rad(15), math.rad(0)),.6) | |
1744 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), 0, -math.rad(15)), .6) | |
1745 | end | |
1746 | ||
1747 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(10), -math.rad(20)), .6) | |
1748 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(60), -math.rad(60), math.rad(110)), .6) | |
1749 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1.2, 0) * CFrame.Angles(-math.rad(20), 0, math.rad(90)), 1) end | |
1750 | elseif Mode == 'Slash32' then | |
1751 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), .6) | |
1752 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(-math.rad(20), math.rad(0), -math.rad(20)), .6) | |
1753 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), -math.rad(50), math.rad(20)),.6) | |
1754 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), .6) | |
1755 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(50), math.rad(50), math.rad(50)), .6) | |
1756 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(60)), .6) | |
1757 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, 0) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(90)), 1) end | |
1758 | elseif Mode == 'Slash21' then | |
1759 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), .6) | |
1760 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(10), math.rad(0), -math.rad(10)), .6) | |
1761 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(10), -math.rad(20), math.rad(10)),.6) | |
1762 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20), -math.rad(20)), .6) | |
1763 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(10), math.rad(60)), .6) | |
1764 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(40)), .6) | |
1765 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, -.5) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(60)), 1) end | |
1766 | elseif Mode == 'Bash11' then | |
1767 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), .6) | |
1768 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .2, -.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .6) | |
1769 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30),-math.rad(0)), .6) | |
1770 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), .6) | |
1771 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/15)/15, math.rad(5), math.rad(20)),.2) | |
1772 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), .6) | |
1773 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1774 | elseif Mode == 'Kneeling' then | |
1775 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, -.5, -.3) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(0)), .6) | |
1776 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 1, -.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1777 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(30), math.rad(0),-math.rad(0)), .6) | |
1778 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0,0) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(20)), .6) | |
1779 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(90), math.rad(5), math.rad(20)),.2) | |
1780 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -1) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(0)), .6) | |
1781 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(0,-2.5,0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1) end | |
1782 | elseif Mode == 'Stomp1' then | |
1783 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .85, -.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .6) | |
1784 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6) | |
1785 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1786 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(30)), .6) | |
1787 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(140), math.rad(0), -math.rad(30)), .6) | |
1788 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6) | |
1789 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1790 | elseif Mode == 'Stomp2' then | |
1791 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .6) | |
1792 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1793 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6) | |
1794 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(30), -math.rad(30)), .6) | |
1795 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), -math.rad(30), math.rad(30)), .6) | |
1796 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6) | |
1797 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1798 | elseif Mode == 'Knee' then | |
1799 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(25), math.rad(0), math.rad(0)), .6) | |
1800 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .75, -1.2) * CFrame. Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1801 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6) | |
1802 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(30), -math.rad(30)), .6) | |
1803 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), -math.rad(30), math.rad(30)), .6) | |
1804 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, -.3, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6) | |
1805 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1806 | elseif Mode == 'Grabbing' then | |
1807 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3) | |
1808 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,0,0) * CFrame.Angles(0, 0, -math.rad(8)),.3) | |
1809 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), 0),.2) | |
1810 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(0, -math.rad(5), -math.rad(20)),.2) | |
1811 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(90), math.rad(5), math.rad(20)),.2) | |
1812 | elseif Mode == 'Throw1' then | |
1813 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), .6) | |
1814 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(-math.rad(20), math.rad(0), -math.rad(20)), .6) | |
1815 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), -math.rad(50), math.rad(20)),.6) | |
1816 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), .6) | |
1817 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(80), math.rad(50), math.rad(50)), .6) | |
1818 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(60)), .6) | |
1819 | elseif Mode == 'Beam' then | |
1820 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3) | |
1821 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,0,0) * CFrame.Angles(0, 0, -math.rad(8)),.3) | |
1822 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), 0),.2) | |
1823 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(0, -math.rad(5), -math.rad(20)),.2) | |
1824 | lerp(rm, rm.C0, rsc0 * CFrame.new(0,1,0) * CFrame.Angles(math.rad(170), math.rad(5), math.rad(20)),.2) | |
1825 | elseif Mode == 'Shielding' then | |
1826 | if (mg > 3) then | |
1827 | lerp(lm, lm.C0, lsc0 * CFrame.new(.7, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(85)), .6) | |
1828 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/15)/15, math.rad(5), math.rad(20)),.2) | |
1829 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),.6) | |
1830 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), .6) | |
1831 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .6) | |
1832 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .6) | |
1833 | else | |
1834 | lerp(lm, lm.C0, lsc0 * CFrame.new(.1, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), .6) | |
1835 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/15)/15, math.rad(5), math.rad(20)),.2) | |
1836 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), .6) | |
1837 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .2, -.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .6) | |
1838 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30),-math.rad(0)), .6) | |
1839 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), .6) | |
1840 | end | |
1841 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1842 | elseif Mode == 'Stabbing1' then | |
1843 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .85, -.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .6) | |
1844 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6) | |
1845 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1846 | lerp(lm, lm.C0, lsc0 * CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(40)), .6) | |
1847 | lerp(rm, rm.C0, rsc0 * CFrame.new(-.5, .5, 0) * CFrame.Angles(math.rad(130), math.rad(0), -math.rad(40)), .6) | |
1848 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6) | |
1849 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1) end | |
1850 | elseif Mode == 'Stabbing2' then | |
1851 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .4, -.6) * CFrame.Angles(-math.rad(10), math.rad(0), math.rad(0)), .6) | |
1852 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.5, -.3) * CFrame.Angles(-math.rad(60), math.rad(0), math.rad(0)), .6) | |
1853 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(0), math.rad(0),-math.rad(0)), .6) | |
1854 | lerp(lm, lm.C0, lsc0 * CFrame.new(.5, .5, -.8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(40)), .6) | |
1855 | lerp(rm, rm.C0, rsc0 * CFrame.new(-.5, .5, -.8) * CFrame.Angles(math.rad(90), math.rad(0), -math.rad(40)), .6) | |
1856 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1, -.7) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(0)), .6) | |
1857 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1) end | |
1858 | end | |
1859 | end) | |
1860 | end)() | |
1861 | ||
1862 | coroutine.wrap(function() | |
1863 | for i = 1,3 do | |
1864 | MediumParticleEmit(Head, 'Bright green') | |
1865 | wait(.05) | |
1866 | MediumParticleEmit(Head,'Really black') | |
1867 | wait(.03) | |
1868 | end | |
1869 | end)() | |
1870 | ||
1871 | --[[ | |
1872 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1873 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1874 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1875 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1876 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1877 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1878 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1879 | ]] |