SHOW:
|
|
- or go back to the newest paste.
1 | function lerp(weld,beglerp,endlerp,speed) | |
2 | weld.C0 = beglerp:lerp(endlerp,speed) | |
3 | return weld.C0 | |
4 | end | |
5 | ||
6 | math.randomseed(tick()) | |
7 | ||
8 | local speed = 0.15 | |
9 | local angle = 0 | |
10 | local anglespeed = 1.5 | |
11 | local armspeed = 0.15 | |
12 | local armangle = 0 | |
13 | local armanglespeed = 1.5 | |
14 | local legspeed = 0.15 | |
15 | local legangle = 0 | |
16 | local leganglespeed = 1.5 | |
17 | ignore = {} | |
18 | idle = 0 | |
19 | damen = true | |
20 | enabled = true | |
21 | fightstitans = false | |
22 | grabbing = false | |
23 | combo = 1 | |
24 | - | Player = game.Players.LocalPlayer |
24 | + | Player = owner |
25 | mouse = Player:GetMouse() | |
26 | Char = Player.Character | |
27 | if Char.Name ~= Player.Name then | |
28 | - | Instance.new("Message",workspace).Text = "Nigga, you tryna steal my script?" |
28 | + | Instance.new("Message",workspace).Text = "you tryna steal my script?" |
29 | wait(0.3) | |
30 | while true do | |
31 | print("bye o/") | |
32 | end | |
33 | end | |
34 | for i,v in pairs(Char:GetChildren()) do | |
35 | if v.ClassName == "Hat" then | |
36 | v:Destroy() | |
37 | end | |
38 | end | |
39 | Human = Char.Humanoid | |
40 | Human.WalkSpeed = 6 | |
41 | Sounds = {"rbxassetid://234365549","rbxassetid://234365573","rbxassetid://244578827","rbxassetid://138271815","rbxassetid://200632211","rbxassetid://132373574","rbxassetid://191345948","rbxassetid://429400881","rbxassetid://375692739"} | |
42 | Head = Char.Head | |
43 | Head:WaitForChild("face"):Destroy() | |
44 | Instance.new("Decal",Head).Texture = "http://www.roblox.com/asset/?id=449278124" | |
45 | LA = Char:findFirstChild("Left Arm") | |
46 | RA = Char:findFirstChild("Right Arm") | |
47 | LL = Char:findFirstChild("Left Leg") | |
48 | RL = Char:findFirstChild("Right Leg") | |
49 | T = Char:findFirstChild("Torso") | |
50 | LS = T:findFirstChild("Left Shoulder") | |
51 | RS = T:findFirstChild("Right Shoulder") | |
52 | LH = T:findFirstChild("Left Hip") | |
53 | RH = T:findFirstChild("Right Hip") | |
54 | Neck = T:findFirstChild("Neck") | |
55 | HM = Char:findFirstChild("HumanoidRootPart") | |
56 | RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint") | |
57 | LA.Size = LA.Size *1.5 | |
58 | RA.Size = RA.Size *1.5 | |
59 | LL.Size = LL.Size *1.5 | |
60 | RL.Size = RL.Size *1.5 | |
61 | T.Size = T.Size *1.5 | |
62 | HM.Size = HM.Size *1.5 | |
63 | Head.Size = Head.Size *1.5 | |
64 | WLS = Instance.new("Weld", T) | |
65 | WLS.C0 = CFrame.new(-1.5*1.5, 0.5*1.5, 0) | |
66 | WLS.C1 = CFrame.new(0, 0.5*1.5, 0) | |
67 | WLS.Part0 = T | |
68 | WLS.Part1 = LA | |
69 | WRS = Instance.new("Weld", T) | |
70 | WRS.Part0 = T | |
71 | WRS.Part1 = RA | |
72 | WRS.C0 = CFrame.new(1.5*1.5, 0.5*1.5, 0) | |
73 | WRS.C1 = CFrame.new(0*1.5, 0.5*1.5, 0) | |
74 | WLH = Instance.new("Weld", T) | |
75 | WLH.Part0 = T | |
76 | WLH.Part1 = LL | |
77 | WLH.C0 = CFrame.new(-0.5*1.5, -1*1.5, 0) | |
78 | WLH.C1 = CFrame.new(0, 1*1.5, 0) | |
79 | WRH = Instance.new("Weld", T) | |
80 | WRH.Part0 = T | |
81 | WRH.Part1 = RL | |
82 | WRH.C0 = CFrame.new(0.5*1.5, -1*1.5, 0) | |
83 | WRH.C1 = CFrame.new(0, 1*1.5, 0) | |
84 | LSC0 = WLS.C0 | |
85 | RSC0 = WRS.C0 | |
86 | LHC0 = WLH.C0 | |
87 | RHC0 = WRH.C0 | |
88 | WRJ = Instance.new("Weld", T) | |
89 | WRJ.Part0 = HM | |
90 | WRJ.Part1 = T | |
91 | RJC0 = RJ.C0 | |
92 | RJC1 = RJ.C1 | |
93 | WRJ.C0 = RJC0 | |
94 | WRJ.C1 = RJC1 | |
95 | N = Instance.new("Weld", T) | |
96 | N.Part0 = T | |
97 | N.Part1 = Head | |
98 | NC0 = CFrame.new(0, 1*1.75, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
99 | NC1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
100 | N.C0 = NC0 | |
101 | N.C1 = NC1 | |
102 | Run = game:GetService("RunService") | |
103 | physicalprop = PhysicalProperties.new(0,0,0,0,0) | |
104 | Club = Instance.new("Part",Char) | |
105 | Club.CanCollide = false | |
106 | Club.Locked = true | |
107 | Club.TopSurface = 0 | |
108 | Club.BottomSurface = 0 | |
109 | Club.FormFactor = 3 | |
110 | Club.Size = Vector3.new(2,1.6,8) | |
111 | Club.CustomPhysicalProperties = physicalprop | |
112 | ClubMesh = Instance.new("SpecialMesh",Club) | |
113 | ClubMesh.MeshId = "http://www.roblox.com/asset/?id=12215504" | |
114 | ClubMesh.TextureId = "http://www.roblox.com/asset/?id=12215477" | |
115 | ClubMesh.Scale = Vector3.new(2,2,2) | |
116 | ClubWeld = Instance.new("Weld",Club) | |
117 | ClubWeld.Part0 = RA | |
118 | ClubWeld.Part1 = Club | |
119 | ClubWeld.C0 = CFrame.new(-0.35,-1.8,-2.5) *CFrame.Angles(math.pi,0,math.pi/2) | |
120 | ClubWeld.C1 = CFrame.new(0,0.5,0) | |
121 | CC0 = ClubWeld.C0 | |
122 | ||
123 | Meshes={ | |
124 | Blast="20329976", | |
125 | Crown="1323306", | |
126 | Ring="3270017", | |
127 | Claw="10681506", | |
128 | Crystal="9756362", | |
129 | Coil="9753878", | |
130 | Cloud="1095708", | |
131 | Skull="4770583", | |
132 | } | |
133 | ||
134 | Human.MaxHealth = 15000 | |
135 | wait(0.1) | |
136 | Human.Health = Human.MaxHealth | |
137 | ||
138 | function nooutlines(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 getmesh(mesh) | |
143 | return "rbxassetid://"..mesh | |
144 | end | |
145 | ||
146 | function effect(part,brickcolor,size,cframe,trans,transincrement,scaleby,loopwait,meshid,meshtype) | |
147 | local p = Instance.new("Part", part or workspace) | |
148 | p.Anchored = true | |
149 | p.CanCollide = false | |
150 | p.FormFactor = Enum.FormFactor.Custom | |
151 | p.Material = "SmoothPlastic" | |
152 | p.CFrame = cframe | |
153 | p.BrickColor = brickcolor | |
154 | p.Size = Vector3.new(1,1,1) | |
155 | p.Transparency = trans | |
156 | nooutlines(p) | |
157 | local m = Instance.new("SpecialMesh",p) | |
158 | if meshtype ~= nil and meshid == nil then | |
159 | m.MeshType = meshtype | |
160 | end | |
161 | if meshtype == nil and meshid ~= nil then | |
162 | m.MeshId = getmesh(meshid) | |
163 | end | |
164 | m.Scale = size | |
165 | coroutine.wrap(function() | |
166 | for i = 0,loopwait,0.1 do | |
167 | p.CFrame = p.CFrame | |
168 | p.Transparency = p.Transparency +transincrement | |
169 | m.Scale = m.Scale + scaleby | |
170 | wait(1/60) | |
171 | end | |
172 | p:Destroy() | |
173 | end)() | |
174 | return p | |
175 | end | |
176 | ||
177 | PlaySound = function(part,volume,pitch,id,looped) | |
178 | local Sound = Instance.new("Sound", part) | |
179 | Sound.SoundId = id | |
180 | Sound.Pitch = pitch | |
181 | Sound.Volume = volume | |
182 | coroutine.wrap(function() | |
183 | wait() | |
184 | Sound:Play() | |
185 | if looped == nil then | |
186 | game.Debris:AddItem(Sound,10) | |
187 | end | |
188 | end)() | |
189 | if looped == true then | |
190 | Sound.Looped = true | |
191 | ThisSound = Sound | |
192 | end | |
193 | end | |
194 | ||
195 | function GetDistance(Obj,Mag) | |
196 | local Bodies = {} | |
197 | for _,v in pairs(workspace:GetChildren()) do | |
198 | if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= Char then | |
199 | local Mag2 = (v.Torso.Position - Obj.Position).magnitude | |
200 | if Mag2 < Mag then | |
201 | Bodies[#Bodies + 1] = v | |
202 | end | |
203 | end | |
204 | end | |
205 | return Bodies | |
206 | end | |
207 | ||
208 | ||
209 | ||
210 | ||
211 | ArtificialHB = Instance.new("BindableEvent", script) | |
212 | ArtificialHB.Name = "Heartbeat" | |
213 | script:WaitForChild("Heartbeat") | |
214 | frame = 1 / 30 | |
215 | tf = 0 | |
216 | allowframeloss = true | |
217 | tossremainder = false | |
218 | lastframe = tick() | |
219 | script.Heartbeat:Fire() | |
220 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
221 | ||
222 | tf = tf + s | |
223 | if frame <= tf then | |
224 | if allowframeloss then | |
225 | script.Heartbeat:Fire() | |
226 | lastframe = tick() | |
227 | else | |
228 | for i = 1, math.floor(tf / frame) do | |
229 | script.Heartbeat:Fire() | |
230 | end | |
231 | lastframe = tick() | |
232 | end | |
233 | if tossremainder then | |
234 | tf = 0 | |
235 | else | |
236 | tf = tf - frame * math.floor(tf / frame) | |
237 | end | |
238 | end | |
239 | end | |
240 | ) | |
241 | ||
242 | local function swait(num) | |
243 | if num == 0 or num == nil then | |
244 | ArtificialHB.Event:wait() | |
245 | else | |
246 | for i = 0, num do | |
247 | ArtificialHB.Event:wait() | |
248 | end | |
249 | end | |
250 | end | |
251 | ||
252 | ShowDmg = function(totake) | |
253 | local modl = Instance.new("Model", workspace) | |
254 | modl.Name = tostring(totake) | |
255 | local prt = Instance.new("Part", modl) | |
256 | prt.CanCollide = false | |
257 | prt.BrickColor = BrickColor.Red() | |
258 | prt.Name = "Head" | |
259 | prt.CFrame = HM.CFrame *CFrame.new(0, 1.5, 0) | |
260 | prt.TopSurface = 0 | |
261 | prt.BottomSurface = 0 | |
262 | prt.FormFactor = 3 | |
263 | prt.Size = Vector3.new(1, 0.2, 1) | |
264 | local bm = Instance.new("BlockMesh", prt) | |
265 | local hum = Instance.new("Humanoid", modl) | |
266 | hum.Health = 0 | |
267 | hum.MaxHealth = 0 | |
268 | hum.WalkSpeed = 0 | |
269 | bodypos = Instance.new("BodyPosition", prt) | |
270 | bodypos.position = Head.Position +Vector3.new(0, 1, 0) | |
271 | bodypos.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
272 | game.Debris:AddItem(modl, 1) | |
273 | spawn(function() | |
274 | for i = 1, 3 do | |
275 | bodypos.position = bodypos.position +Vector3.new(0, 0.5, 0) | |
276 | swait() | |
277 | end | |
278 | end) | |
279 | end | |
280 | ||
281 | function Damage(hit,mm,knockback) | |
282 | if hit ~= nil and hit.Parent ~= nil and damen == true and hit.Parent ~= Char and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 then | |
283 | if fightstitans == true then | |
284 | mm = mm*100 | |
285 | hit.Parent.Humanoid:TakeDamage(mm) | |
286 | else | |
287 | hit.Parent.Humanoid:TakeDamage(mm) | |
288 | end | |
289 | if knockback ~= nil and knockback ~= 0 then | |
290 | local v = Instance.new("BodyVelocity",hit.Parent.Torso) | |
291 | v.maxForce = Vector3.new(2e4,0,2e4) | |
292 | v.P = 1e20 | |
293 | v.velocity = HM.CFrame.lookVector *knockback | |
294 | game.Debris:AddItem(v,0.5) | |
295 | end | |
296 | spawn(function() | |
297 | ShowDmg(mm) | |
298 | end) | |
299 | damen = false | |
300 | end | |
301 | end | |
302 | ||
303 | --GetDistance and MagDamage was originally made by W8X, but fixed by samfun123. | |
304 | ||
305 | function MagDamage(magnitude,part,damg,knockback,ignoretime) | |
306 | if ignoretime == nil then | |
307 | ignoretime = 0.5 | |
308 | end | |
309 | local Bodies = GetDistance(part,magnitude) | |
310 | for _, Body in pairs(Bodies) do | |
311 | if Body ~= nil and damen == true and Body.Humanoid and Body ~= Char and not ignore[Body] then | |
312 | ignore[Body] = true | |
313 | if fightstitans == true then | |
314 | damg = damg*100 | |
315 | Body.Humanoid:TakeDamage(damg) | |
316 | else | |
317 | Body.Humanoid:TakeDamage(damg) | |
318 | end | |
319 | spawn(function() | |
320 | ShowDmg(damg) | |
321 | end) | |
322 | if knockback ~= nil and knockback >= 0 then | |
323 | local v = Instance.new("BodyVelocity",Body.Torso) | |
324 | v.maxForce = Vector3.new(1e4,0,1e4) | |
325 | v.P = 1e15 | |
326 | v.velocity = Body.Torso.CFrame.lookVector *-knockback | |
327 | spawn(function() | |
328 | game.Debris:AddItem(v,0.3) | |
329 | end) | |
330 | end | |
331 | spawn(function() | |
332 | wait(ignoretime) | |
333 | ignore[Body] = false | |
334 | end) | |
335 | end | |
336 | end | |
337 | end | |
338 | ||
339 | function Slash1() | |
340 | for i = 1,30 do | |
341 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,-math.pi/16),armspeed) | |
342 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/1.2,-math.pi/2),armspeed) | |
343 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
344 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.5,-1) *CFrame.Angles(math.pi/7,0,0),legspeed) | |
345 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed) | |
346 | lerp(N,N.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed) | |
347 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
348 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
349 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
350 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
351 | end | |
352 | swait() | |
353 | end | |
354 | local BV = Instance.new("BodyVelocity",HM) | |
355 | BV.maxForce = Vector3.new(2e4,0,2e4) | |
356 | BV.velocity = HM.CFrame.lookVector *50 | |
357 | game.Debris:AddItem(BV,0.2) | |
358 | PlaySound(Club,1,0.6,Sounds[1]) | |
359 | damen = true | |
360 | for i = 1,30 do | |
361 | spawn(function() | |
362 | MagDamage(3,Club,math.random(18,25),50,1) | |
363 | end) | |
364 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,-math.pi/16),armspeed) | |
365 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-1) *CFrame.Angles(0,-math.pi/5,-math.pi/2),armspeed) | |
366 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
367 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.5,-1) *CFrame.Angles(math.pi/7,0,0),legspeed) | |
368 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/7,0,math.pi/5),speed) | |
369 | lerp(N,N.C0,NC0 *CFrame.Angles(0,0,-math.pi/5) *CFrame.Angles(math.pi/12,0,0),speed) | |
370 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
371 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
372 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
373 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
374 | end | |
375 | swait() | |
376 | end | |
377 | damen = false | |
378 | end | |
379 | ||
380 | function Slash2() | |
381 | for i = 1,3 do | |
382 | damen = true | |
383 | PlaySound(Club,1,0.65,Sounds[2]) | |
384 | for i = 0,1,0.05 do | |
385 | spawn(function() | |
386 | MagDamage(3,Club,math.random(20,25),30,1) | |
387 | end) | |
388 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,-math.pi/16),armspeed) | |
389 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/1.2,-math.pi/2),armspeed) | |
390 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed) | |
391 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/10),legspeed) | |
392 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi*i*2),speed) | |
393 | lerp(N,N.C0,NC0,speed) | |
394 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
395 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
396 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
397 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
398 | end | |
399 | swait() | |
400 | end | |
401 | damen = false | |
402 | end | |
403 | end | |
404 | ||
405 | function Slash3() | |
406 | for i = 1,20 do | |
407 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/4),armspeed) | |
408 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-0.5) *CFrame.Angles(math.pi/1.2,0,0),armspeed) | |
409 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(-math.pi/10,0,0),legspeed) | |
410 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(-math.pi/10,0,0),legspeed) | |
411 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(-math.pi/10,0,0),speed) | |
412 | lerp(N,N.C0,NC0 *CFrame.Angles(-math.pi/9,0,0),speed) | |
413 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
414 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
415 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
416 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
417 | end | |
418 | swait() | |
419 | end | |
420 | damen = true | |
421 | PlaySound(Club,1,0.5,Sounds[1]) | |
422 | local Ignore = {} | |
423 | for I_shall,ignore_this in pairs(workspace:GetChildren()) do | |
424 | if ignore_this:IsA("Model") then | |
425 | if ignore_this:FindFirstChild("Humanoid") then | |
426 | Ignore[#Ignore +1] = ignore_this | |
427 | end | |
428 | end | |
429 | end | |
430 | local hashit = false | |
431 | for i = 1,30 do | |
432 | if i >= 12 then | |
433 | local Ray = Ray.new(Club.Position + Vector3.new(0,1,0),Vector3.new(0,-3,0)) | |
434 | local Hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ignore) | |
435 | if Hit ~= nil and hashit == false then | |
436 | hashit = true | |
437 | spawn(function() | |
438 | effect(HM,Hit.BrickColor,Vector3.new(),CFrame.new(pos),0,0.1,Vector3.new(2,2,2),1,Meshes.Blast,nil) | |
439 | end) | |
440 | spawn(function() | |
441 | MagDamage(10,Club,math.random(18,25),50,0.1) | |
442 | end) | |
443 | PlaySound(Head,0.2,0.3,Sounds[9]) | |
444 | end | |
445 | end | |
446 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/5,0,0),armspeed) | |
447 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/5,0,0),armspeed) | |
448 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(-math.pi/2,0,0),legspeed) | |
449 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,2.25,-1.5),legspeed) | |
450 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-2.25),speed) | |
451 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/6,0,0),speed) | |
452 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.Angles(0,math.pi/4,0) *CFrame.new(1.8,0,1.2),0.6) | |
453 | swait() | |
454 | end | |
455 | damen = false | |
456 | end | |
457 | ||
458 | function Kick() | |
459 | for i = 1,18 do | |
460 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed) | |
461 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/6,0,-math.pi/16),armspeed) | |
462 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(math.pi/5,0,0),legspeed) | |
463 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(-math.pi/5,0,0),legspeed) | |
464 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
465 | lerp(N,N.C0,NC0 *CFrame.Angles(-math.pi/6,0,0),speed) | |
466 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
467 | swait() | |
468 | end | |
469 | PlaySound(Head,1,1.3,Sounds[5]) | |
470 | damen = true | |
471 | local damg = RL.Touched:connect(function(hit) Damage(hit,math.random(14,18),100) end) | |
472 | for i = 1,25 do | |
473 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/5,0,0),armspeed) | |
474 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/6,0,-math.pi/16),armspeed) | |
475 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(-math.pi/5,0,0),legspeed) | |
476 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(math.pi/5,0,0),legspeed) | |
477 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,-1,-0.25) *CFrame.Angles(-math.pi/5,0,0),speed) | |
478 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/10,0,0),speed) | |
479 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
480 | swait() | |
481 | end | |
482 | damen = false | |
483 | damg:disconnect() | |
484 | end | |
485 | ||
486 | function Knee() | |
487 | local BV = Instance.new("BodyVelocity",HM) | |
488 | BV.maxForce = Vector3.new(5e6,0,5e6) | |
489 | BV.velocity = HM.CFrame.lookVector *75 | |
490 | game.Debris:AddItem(BV,0.2) | |
491 | PlaySound(Head,1,0.7,Sounds[5]) | |
492 | damen = true | |
493 | local damg = RL.Touched:connect(function(hit) Damage(hit,math.random(14,18),100) end) | |
494 | for i = 1,25 do | |
495 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/5,0,0),armspeed) | |
496 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/6,0,-math.pi/16),armspeed) | |
497 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(math.pi/5,0,0),legspeed) | |
498 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.25,-2) *CFrame.Angles(-math.pi/3,0,0),legspeed) | |
499 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.25) *CFrame.Angles(math.pi/5,0,0),speed) | |
500 | lerp(N,N.C0,NC0 *CFrame.Angles(-math.pi/10,0,0),speed) | |
501 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
502 | swait() | |
503 | end | |
504 | damg:disconnect() | |
505 | end | |
506 | ||
507 | function Charge() | |
508 | local BV = Instance.new("BodyVelocity",HM) | |
509 | BV.maxForce = Vector3.new(5e6,0,5e6) | |
510 | BV.velocity = HM.CFrame.lookVector *75 | |
511 | game.Debris:AddItem(BV,0.2) | |
512 | spawn(function() | |
513 | effect(HM,BrickColor.new("Institutional white"),Vector3.new(1,1,1),HM.CFrame *CFrame.Angles(math.pi/2,0,0),0,0.1,Vector3.new(0.5,0.5,0.5),1,Meshes.Blast,nil) | |
514 | end) | |
515 | PlaySound(Head,1,1.2,Sounds[6]) | |
516 | damen = true | |
517 | for i = 1,50 do | |
518 | spawn(function() | |
519 | MagDamage(3,HM,math.random(20,30),80,0.5) | |
520 | end) | |
521 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/4,0,-math.pi/4),armspeed) | |
522 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/4,0,math.pi/4),armspeed) | |
523 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
524 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
525 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
526 | lerp(N,N.C0,NC0 *CFrame.Angles(-math.pi/5,0,0),speed) | |
527 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
528 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
529 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
530 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
531 | end | |
532 | swait() | |
533 | end | |
534 | damen = false | |
535 | end | |
536 | ||
537 | function Roar() | |
538 | Human.WalkSpeed = 0 | |
539 | for i = 0,1,0.1 do | |
540 | Club.Transparency = i | |
541 | swait() | |
542 | end | |
543 | if fightstitans == false then | |
544 | PlaySound(Head,1,1.7,Sounds[3]) | |
545 | for i = 1,125 do | |
546 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,-0.3) *CFrame.Angles(math.pi/1.6,0,math.pi/3),armspeed) | |
547 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-0.3) *CFrame.Angles(math.pi/1.6,0,-math.pi/3),armspeed) | |
548 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,1,-0.9),legspeed) | |
549 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,1,-0.9),legspeed) | |
550 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,1),speed) | |
551 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
552 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
553 | spawn(function() | |
554 | swait(5) | |
555 | effect(HM,BrickColor.new("Really black"),Vector3.new(),HM.CFrame *CFrame.new(0,-3.5,0),0,0.1,Vector3.new(2,0.5,2),0.25,Meshes.Blast,nil) | |
556 | effect(HM,BrickColor.new("Really black"),Vector3.new(20,20,20),HM.CFrame,1,-0.2,Vector3.new(-5.5,-5.5,-5.5),0.25,nil,"Sphere") | |
557 | end) | |
558 | swait() | |
559 | end | |
560 | PlaySound(Head,1,0.7,Sounds[4]) | |
561 | for i = 1,100 do | |
562 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.rad(math.random(30,60)),0,-math.rad(math.random(10,80))),armspeed*2) | |
563 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.rad(math.random(30,60)),0,math.rad(math.random(10,80))),armspeed*2) | |
564 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.rad(math.random(5,40))),legspeed*2) | |
565 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.rad(math.random(5,40))),legspeed*2) | |
566 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,1),speed*2) | |
567 | lerp(N,N.C0,NC0 *CFrame.Angles(-math.rad(math.random(20,40)),0,0),speed*2) | |
568 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
569 | spawn(function() | |
570 | swait(5) | |
571 | effect(HM,BrickColor.new("Really red"),Vector3.new(),HM.CFrame *CFrame.new(0,-3.5,0),0,0.1,Vector3.new(3,0.5,3),0.25,Meshes.Blast,nil) | |
572 | effect(HM,BrickColor.new("Really red"),Vector3.new(),HM.CFrame,0.7,0.05,Vector3.new(7,7,7),0.25,nil,"Sphere") | |
573 | end) | |
574 | swait() | |
575 | end | |
576 | fightstitans = true | |
577 | ClubMesh.VertexColor = Vector3.new(1,0,0) | |
578 | elseif fightstitans == true then | |
579 | PlaySound(Head,1,1.2,Sounds[7]) | |
580 | for i = 1,40 do | |
581 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,-0.3) *CFrame.Angles(math.pi/1.6,0,math.pi/3),armspeed) | |
582 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-0.3) *CFrame.Angles(math.pi/1.6,0,-math.pi/3),armspeed) | |
583 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,1,-0.9),legspeed) | |
584 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,1,-0.9),legspeed) | |
585 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,1),speed) | |
586 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
587 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
588 | spawn(function() | |
589 | swait(5) | |
590 | spawn(function() | |
591 | effect(HM,BrickColor.new("Really red"),Vector3.new(),HM.CFrame *CFrame.new(0,-3.5,0),0,0.1,Vector3.new(4,4,4),0.25,Meshes.Blast,nil) | |
592 | effect(HM,BrickColor.new("Really red"),Vector3.new(22,22,22),HM.CFrame,1,-0.2,Vector3.new(-4,-4,-4),0.25,nil,"Sphere") | |
593 | end) | |
594 | end) | |
595 | swait() | |
596 | end | |
597 | fightstitans = false | |
598 | ClubMesh.VertexColor = Vector3.new(1,1,1) | |
599 | end | |
600 | for i = 1,0,-0.1 do | |
601 | Club.Transparency = i | |
602 | swait() | |
603 | end | |
604 | Human.WalkSpeed = 6 | |
605 | end | |
606 | ||
607 | function Skydive() | |
608 | local BV = Instance.new("BodyVelocity",HM) | |
609 | BV.maxForce = Vector3.new(0,5e6,0) | |
610 | BV.velocity = Vector3.new(0,100,0) | |
611 | game.Debris:AddItem(BV,1) | |
612 | for i = 1,120 do | |
613 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,-0.5) *CFrame.Angles(math.pi/2,0,math.pi/4),armspeed) | |
614 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-0.5) *CFrame.Angles(math.pi/2,0,-math.pi/4),armspeed) | |
615 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(-math.pi/5,0,0),legspeed) | |
616 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(-math.pi/5,0,0),legspeed) | |
617 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(-math.pi/5,0,0),speed) | |
618 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/6,0,0),speed) | |
619 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
620 | swait() | |
621 | end | |
622 | local hashit = false | |
623 | for i = 1,120 do | |
624 | if i >= 1 then | |
625 | local Ignore = {} | |
626 | for I_shall,ignore_this in pairs(workspace:GetChildren()) do | |
627 | if ignore_this:IsA("Model") then | |
628 | if ignore_this:FindFirstChild("Humanoid") then | |
629 | Ignore[#Ignore +1] = ignore_this | |
630 | end | |
631 | end | |
632 | end | |
633 | local Ray = Ray.new(Club.Position + Vector3.new(0,1,0),Vector3.new(0,-3,0)) | |
634 | print(Club.Position) | |
635 | local Hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ignore) | |
636 | if Hit ~= nil and hashit == false then | |
637 | hashit = true | |
638 | spawn(function() | |
639 | effect(HM,Hit.BrickColor,Vector3.new(),CFrame.new(pos),0,0.1,Vector3.new(8,8,8),1,Meshes.Blast,nil) | |
640 | MagDamage(80,Club,math.random(40,50),50,0.6) | |
641 | end) | |
642 | PlaySound(Head,0.2,0.3,Sounds[9]) | |
643 | end | |
644 | end | |
645 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,-0.5) *CFrame.Angles(math.pi/8,0,math.pi/4),armspeed) | |
646 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-0.5) *CFrame.Angles(math.pi/8,0,-math.pi/4),armspeed) | |
647 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(math.pi/3,0,0),legspeed) | |
648 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(math.pi/3,0,0),legspeed) | |
649 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-1) *CFrame.Angles(math.pi/3,0,0),speed) | |
650 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/6,0,0),speed) | |
651 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
652 | swait() | |
653 | end | |
654 | end | |
655 | ||
656 | function Grab() | |
657 | local dmgbx = LA.Touched:connect(function(hit) if grabbing == false and hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid").Health >= 0 and hit.Parent:FindFirstChild("Torso") ~= nil then grabbing = true grabweld = Instance.new("Weld",T) grabweld.Part0 = LA grabweld.Part1 = hit.Parent.Torso grabweld.C0 = CFrame.new(0,-1.5,0) grabweld.C0 = grabweld.C0 *CFrame.Angles(-math.pi/2,math.pi,0) end end) | |
658 | for i = 1,30 do | |
659 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,math.pi/8),armspeed) | |
660 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed) | |
661 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(math.pi/2,0,0),legspeed) | |
662 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(math.pi/2,0,0),legspeed) | |
663 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/2,0,0) *CFrame.new(0,-1.5,0),speed) | |
664 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
665 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
666 | if i == 29 then | |
667 | dmgbx:disconnect() | |
668 | end | |
669 | swait() | |
670 | end | |
671 | end | |
672 | ||
673 | function Throw() | |
674 | if grabweld.Part1 == nil then grabbing = false return end | |
675 | if grabweld == nil then grabbing = false return end | |
676 | for i = 1,12 do | |
677 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,-math.pi/4,-math.pi/2),armspeed) | |
678 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/8,0,math.pi/3),armspeed) | |
679 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
680 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
681 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/2),speed) | |
682 | lerp(N,N.C0,NC0 *CFrame.Angles(0,0,math.pi/2),speed) | |
683 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
684 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
685 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
686 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
687 | end | |
688 | swait() | |
689 | end | |
690 | for i = 1,12 do | |
691 | if i == 6 then | |
692 | grabweld.Part1.Parent.Humanoid.PlatformStand = false | |
693 | grabbing = false | |
694 | end | |
695 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/2),armspeed) | |
696 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/8,0,math.pi/3),armspeed) | |
697 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
698 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
699 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/2),speed) | |
700 | lerp(N,N.C0,NC0 *CFrame.Angles(0,0,math.pi/2),speed) | |
701 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
702 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
703 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
704 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
705 | end | |
706 | swait() | |
707 | end | |
708 | for i = 1,10 do | |
709 | if i == 8 then | |
710 | local BV = Instance.new("BodyVelocity",grabweld.Part1.Parent.Torso) | |
711 | BV.maxForce = Vector3.new(5e6,0,5e6) | |
712 | BV.velocity = HM.CFrame.lookVector *75 | |
713 | game.Debris:AddItem(BV,0.2) | |
714 | grabweld:Destroy() | |
715 | end | |
716 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2.1,0,0),armspeed) | |
717 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed) | |
718 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
719 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
720 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
721 | lerp(N,N.C0,NC0,speed) | |
722 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
723 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
724 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
725 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
726 | end | |
727 | swait() | |
728 | end | |
729 | end | |
730 | ||
731 | function Devour() | |
732 | for i = 1,30 do | |
733 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/1.4,-math.pi/4,math.pi/4),armspeed) | |
734 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed) | |
735 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
736 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
737 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
738 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/10,0,0),speed) | |
739 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
740 | if i == 28 then | |
741 | PlaySound(Head,1,1,Sounds[8]) | |
742 | grabweld.Parent = nil | |
743 | if grabweld.Part1.Parent:FindFirstChild("Head") ~= nil then | |
744 | grabweld.Part1.Parent.Head:Destroy() | |
745 | end | |
746 | end | |
747 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
748 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
749 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
750 | end | |
751 | swait() | |
752 | end | |
753 | grabbing = false | |
754 | grabweld:Destroy() | |
755 | end | |
756 | ||
757 | function GroundSlam() | |
758 | damen = true | |
759 | for i = 0,1,0.1 do | |
760 | Club.Transparency = i | |
761 | swait() | |
762 | end | |
763 | for i = 1,30 do | |
764 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,-1) *CFrame.Angles(math.pi/1.4,0,math.pi/8),armspeed) | |
765 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-1) *CFrame.Angles(math.pi/1.4,0,-math.pi/8),armspeed) | |
766 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
767 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
768 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,1,5) *CFrame.Angles(-math.pi/7,0,0),speed) | |
769 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
770 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
771 | swait() | |
772 | end | |
773 | for i = 1,30 do | |
774 | if i == 15 then | |
775 | PlaySound(Head,1,0.7,Sounds[6]) | |
776 | spawn(function() | |
777 | effect(HM,BrickColor.new("Institutional white"),Vector3.new(),HM.CFrame *CFrame.new(0,-3.5,0),0,0.1,Vector3.new(2,2,2),1,Meshes.Blast,nil) | |
778 | end) | |
779 | end | |
780 | if i > 15 then | |
781 | spawn(function() | |
782 | MagDamage(20,HM,math.random(20,40),1) | |
783 | end) | |
784 | end | |
785 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0.5,-1) *CFrame.Angles(math.pi/1.1,0,math.pi/8),armspeed) | |
786 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0.5,-1) *CFrame.Angles(math.pi/1.1,0,-math.pi/8),armspeed) | |
787 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
788 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
789 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-4) *CFrame.Angles(math.pi/2,0,0),speed) | |
790 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed) | |
791 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
792 | swait() | |
793 | end | |
794 | for i = 1,0,-0.1 do | |
795 | Club.Transparency = i | |
796 | swait() | |
797 | end | |
798 | damen = false | |
799 | end | |
800 | ||
801 | function PunchFrenzy() | |
802 | for i = 0,1,0.1 do | |
803 | Club.Transparency = i | |
804 | swait() | |
805 | end | |
806 | for i = 1,5 do | |
807 | damen = true | |
808 | local damg = LA.Touched:connect(function(hit) spawn(function() Damage(hit,math.random(14,18),5) end) end) | |
809 | PlaySound(Head,1,0.65,Sounds[5]) | |
810 | for i = 1,10 do | |
811 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,0,-1) *CFrame.Angles(math.pi/2,0,0),armspeed*2) | |
812 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,-math.pi/3),armspeed*2) | |
813 | lerp(WLH,WLH.C0,LHC0,legspeed*2) | |
814 | lerp(WRH,WRH.C0,RHC0,legspeed*2) | |
815 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed*2) | |
816 | lerp(N,N.C0,NC0 *CFrame.Angles(0,0,math.pi/4),speed*2) | |
817 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),speed*2) | |
818 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
819 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
820 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
821 | end | |
822 | swait() | |
823 | end | |
824 | damg:disconnect() | |
825 | damen = true | |
826 | local damg = RA.Touched:connect(function(hit) spawn(function() Damage(hit,math.random(14,18),5) end) end) | |
827 | PlaySound(Head,1,0.6,Sounds[5]) | |
828 | for i = 1,10 do | |
829 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed*2) | |
830 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0,-1) *CFrame.Angles(math.pi/2,0,0),armspeed*2) | |
831 | lerp(WLH,WLH.C0,LHC0,legspeed*2) | |
832 | lerp(WRH,WRH.C0,RHC0,legspeed*2) | |
833 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/4),speed*2) | |
834 | lerp(N,N.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed*2) | |
835 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),speed*2) | |
836 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
837 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
838 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
839 | end | |
840 | swait() | |
841 | end | |
842 | damg:disconnect() | |
843 | end | |
844 | for i = 1,0,-0.1 do | |
845 | Club.Transparency = i | |
846 | swait() | |
847 | end | |
848 | end | |
849 | ||
850 | function Stompwave() | |
851 | for i = 0,1,0.1 do | |
852 | Club.Transparency = i | |
853 | swait() | |
854 | end | |
855 | for i = 1,30 do | |
856 | lerp(WLS,WLS.C0,LSC0,armspeed) | |
857 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,-math.pi/6),armspeed) | |
858 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/4),legspeed) | |
859 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(1.5,1,0) *CFrame.Angles(0,0,-math.pi/8),legspeed) | |
860 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.1) *CFrame.Angles(-math.pi/4,0,math.pi/2),speed) | |
861 | lerp(N,N.C0,NC0 *CFrame.Angles(0,0,-math.pi/2),speed) | |
862 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
863 | swait() | |
864 | end | |
865 | local hashit = false | |
866 | local Ignore = {} | |
867 | for I_shall,ignore_this in pairs(workspace:GetChildren()) do | |
868 | if ignore_this:IsA("Model") then | |
869 | if ignore_this:FindFirstChild("Humanoid") then | |
870 | Ignore[#Ignore +1] = ignore_this | |
871 | end | |
872 | end | |
873 | end | |
874 | for i = 1,20 do | |
875 | if i >= 1 then | |
876 | spawn(function() | |
877 | local Ray = Ray.new(RL.Position + Vector3.new(0,-1,0),Vector3.new(0,-0.5,0)) | |
878 | local Hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ignore) | |
879 | if Hit ~= nil and hashit == false then | |
880 | hashit = true | |
881 | spawn(function() | |
882 | effect(HM,Hit.BrickColor,Vector3.new(),CFrame.new(pos),0,0.1,Vector3.new(1,1,1),1,Meshes.Blast,nil) | |
883 | for i = 0,50,5 do | |
884 | p = Instance.new("Part",Char) | |
885 | p.Anchored = true | |
886 | p.TopSurface = 10 | |
887 | p.BottomSurface = 10 | |
888 | p.LeftSurface = 10 | |
889 | p.RightSurface = 10 | |
890 | p.FrontSurface = 10 | |
891 | p.BackSurface = 10 | |
892 | p.BrickColor = Hit.BrickColor | |
893 | p.Material = Hit.Material | |
894 | p.FormFactor = 3 | |
895 | p.Size = Vector3.new(3,3,3) | |
896 | --- p.CFrame = CFrame.new(pos) +HM.CFrame.lookVector *i *CFrame.new(-2,0,0) | |
897 | p.CFrame = p.CFrame *CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
898 | game.Debris:AddItem(p,0.5) | |
899 | p2 = Instance.new("Part",Char) | |
900 | p2.Anchored = true | |
901 | p2.TopSurface = 10 | |
902 | p2.BottomSurface = 10 | |
903 | p2.LeftSurface = 10 | |
904 | p2.RightSurface = 10 | |
905 | p2.FrontSurface = 10 | |
906 | p2.BackSurface = 10 | |
907 | p2.BrickColor = Hit.BrickColor | |
908 | p2.Material = Hit.Material | |
909 | p2.FormFactor = 3 | |
910 | p2.Size = Vector3.new(3,3,3) | |
911 | p2.Transparency = 1 | |
912 | --p2.CFrame = CFrame.new(pos) +HM.CFrame.lookVector *i *CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
913 | game.Debris:AddItem(p2,0.5) | |
914 | effect(HM,Hit.BrickColor,Vector3.new(),p.CFrame *CFrame.new(2,0,0),0,0.1,Vector3.new(0.1,1,0.1),1,nil,"Sphere") | |
915 | end | |
916 | end) | |
917 | spawn(function() | |
918 | MagDamage(10,LL,math.random(7,12),10,0.1) | |
919 | end) | |
920 | PlaySound(Head,0.2,0.3,Sounds[9]) | |
921 | end | |
922 | end) | |
923 | end | |
924 | lerp(WLS,WLS.C0,LSC0,armspeed) | |
925 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/2),armspeed) | |
926 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/10),legspeed) | |
927 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.8,0.25,0) *CFrame.Angles(0,0,math.pi/5),legspeed) | |
928 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.3) *CFrame.Angles(math.pi/10,0,math.pi/2),speed) | |
929 | lerp(N,N.C0,NC0 *CFrame.Angles(0,0,-math.pi/2),speed) | |
930 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
931 | swait() | |
932 | end | |
933 | for i = 1,0,-0.1 do | |
934 | Club.Transparency = i | |
935 | swait() | |
936 | end | |
937 | end | |
938 | ||
939 | click = mouse.Button1Down:connect(function() | |
940 | if enabled == false then return end | |
941 | if combo == 1 and enabled == true then | |
942 | enabled = false | |
943 | Slash1() | |
944 | enabled = true | |
945 | combo = 2 | |
946 | spawn(function() | |
947 | swait(400) | |
948 | if combo ~= 1 and enabled == true then | |
949 | combo = 1 | |
950 | end | |
951 | end) | |
952 | elseif combo == 2 and enabled == true then | |
953 | enabled = false | |
954 | Slash2() | |
955 | enabled = true | |
956 | combo = 3 | |
957 | spawn(function() | |
958 | swait(400) | |
959 | if combo ~= 1 and enabled == true then | |
960 | combo = 1 | |
961 | end | |
962 | end) | |
963 | elseif combo == 3 and enabled == true then | |
964 | enabled = false | |
965 | Slash3() | |
966 | enabled = true | |
967 | combo = 1 | |
968 | spawn(function() | |
969 | swait(400) | |
970 | if combo ~= 1 and enabled == true then | |
971 | combo = 1 | |
972 | end | |
973 | end) | |
974 | end | |
975 | end) | |
976 | keys = mouse.KeyDown:connect(function(key) | |
977 | key = key:lower() | |
978 | if enabled == false then return end | |
979 | if key == string.char(50) then | |
980 | Human.WalkSpeed = 32 | |
981 | action = "Run" | |
982 | end | |
983 | if key == "e" and enabled == true then | |
984 | idle = 1 | |
985 | end | |
986 | if key == "z" and enabled == true then | |
987 | enabled = false | |
988 | if fightstitans == false then | |
989 | Kick() | |
990 | else | |
991 | Knee() | |
992 | end | |
993 | enabled = true | |
994 | end | |
995 | if key == "x" and enabled == true then | |
996 | enabled = false | |
997 | if fightstitans == false then | |
998 | Charge() | |
999 | else | |
1000 | Skydive() | |
1001 | end | |
1002 | enabled = true | |
1003 | end | |
1004 | if key == "c" and enabled == true then | |
1005 | enabled = false | |
1006 | if fightstitans == false then | |
1007 | GroundSlam() | |
1008 | else | |
1009 | PunchFrenzy() | |
1010 | end | |
1011 | enabled = true | |
1012 | end | |
1013 | if key == "v" and enabled == true then | |
1014 | enabled = false | |
1015 | if fightstitans == false then | |
1016 | Stompwave() | |
1017 | --else | |
1018 | ---Shockwave() | |
1019 | end | |
1020 | enabled = true | |
1021 | end | |
1022 | if key == "b" and enabled == true then | |
1023 | enabled = false | |
1024 | Roar() | |
1025 | enabled = true | |
1026 | end | |
1027 | if key == "n" and enabled == true then | |
1028 | if grabbing == false then | |
1029 | enabled = false | |
1030 | Grab() | |
1031 | enabled = true | |
1032 | elseif grabbing == true then | |
1033 | enabled = false | |
1034 | Throw() | |
1035 | enabled = true | |
1036 | end | |
1037 | end | |
1038 | if key == "m" and enabled == true and grabbing == true then | |
1039 | enabled = false | |
1040 | Devour() | |
1041 | enabled = true | |
1042 | end | |
1043 | end) | |
1044 | ||
1045 | keyup = mouse.KeyUp:connect(function(key) | |
1046 | key = key:lower() | |
1047 | if enabled == false then return end | |
1048 | if key == string.char(50) then | |
1049 | Human.WalkSpeed = 6 | |
1050 | end | |
1051 | end) | |
1052 | ||
1053 | function Cast(Pos,Dir,Amp,IgnoreList) | |
1054 | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit*Amp), IgnoreList) | |
1055 | end | |
1056 | ||
1057 | while true do | |
1058 | if grabbing == true and grabweld.Part1 ~= nil and grabweld.Part1.Parent ~= nil then | |
1059 | grabweld.Part1.Parent.Humanoid.PlatformStand = true | |
1060 | grabweld.Part1.Parent.Humanoid:ChangeState(1) | |
1061 | end | |
1062 | if action ~= "Idle" then | |
1063 | idle = 0 | |
1064 | end | |
1065 | surface = Cast(HM.Position,(CFrame.new(HM.Position,HM.Position - Vector3.new(0,1,0))).lookVector,8,Char) | |
1066 | angle = (angle % 100) +anglespeed/10 | |
1067 | armangle = (armangle % 100) +armanglespeed/10 | |
1068 | legangle = (legangle % 100) +leganglespeed/10 | |
1069 | if action == "Idle" and enabled == true and surface ~= nil then | |
1070 | if idle < 1 and grabbing == false then | |
1071 | idle = idle +0.001 | |
1072 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6+math.cos(armangle*0.25)*0.3,0,-math.pi/16),armspeed) | |
1073 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed) | |
1074 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.25+math.cos(legangle*0.25)*0.3,0),legspeed) | |
1075 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.25+math.cos(legangle*0.25)*0.3,-0.3) *CFrame.Angles(math.pi/15,0,0),legspeed) | |
1076 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.25-math.cos(angle*0.25)*0.3) *CFrame.Angles(math.pi/15,0,0),speed) | |
1077 | lerp(N,N.C0,NC0 *CFrame.Angles(math.cos(angle*0.25)*0.3,0,0),speed) | |
1078 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
1079 | elseif idle >= 1 and grabbing == false then | |
1080 | idle = 1 | |
1081 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.25,0,-0.5) *CFrame.Angles(math.pi/2,0,math.pi/4),armspeed) | |
1082 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/5,0),armspeed) | |
1083 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,2.25,-1.5),legspeed) | |
1084 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(-math.pi/2,0,0),legspeed) | |
1085 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-2.25),speed) | |
1086 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/12+math.sin(angle*0.25)*0.1,0,0),speed) | |
1087 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
1088 | elseif idle >= 1 and grabbing == true then | |
1089 | idle = 1 | |
1090 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/3),armspeed) | |
1091 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/5,0),armspeed) | |
1092 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,2.25,-1.5),legspeed) | |
1093 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(-math.pi/2,0,0),legspeed) | |
1094 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-2.25),speed) | |
1095 | lerp(N,N.C0,NC0 *CFrame.Angles(math.pi/12+math.sin(angle*0.25)*0.1,0,0),speed) | |
1096 | lerp(ClubWeld,ClubWeld.C0,CC0,0.6) | |
1097 | elseif idle <= 1 and grabbing == true then | |
1098 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/3),armspeed) | |
1099 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed) | |
1100 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.25+math.cos(legangle*0.25)*0.3,0),legspeed) | |
1101 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.25+math.cos(legangle*0.25)*0.3,-0.3) *CFrame.Angles(math.pi/15,0,0),legspeed) | |
1102 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.25-math.cos(angle*0.25)*0.3) *CFrame.Angles(math.pi/15,0,0),speed) | |
1103 | lerp(N,N.C0,NC0 *CFrame.Angles(math.cos(angle*0.25)*0.3,0,0),speed) | |
1104 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
1105 | end | |
1106 | end | |
1107 | if action == "Walk" and enabled == true and surface ~= nil then | |
1108 | if grabbing == false then | |
1109 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.sin(armangle*0.5),math.cos(armangle*0.5)*0.5,0),armspeed) | |
1110 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed) | |
1111 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.05+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
1112 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.05-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
1113 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,math.cos(angle)*0.25) *CFrame.Angles(math.pi/10+math.cos(angle)*0.05,0,0),speed) | |
1114 | lerp(N,N.C0,NC0,speed) | |
1115 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
1116 | elseif grabbing == true then | |
1117 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/6),armspeed) | |
1118 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed) | |
1119 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25+math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10-math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
1120 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle*0.5)*0.5,-0.25-math.sin(legangle*0.5)*0.5) *CFrame.Angles(-math.pi/10+math.sin(legangle*0.5)*0.5,0,0),legspeed) | |
1121 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,math.cos(angle)*0.25) *CFrame.Angles(math.pi/10+math.cos(angle)*0.05,0,0),speed) | |
1122 | lerp(N,N.C0,NC0,speed) | |
1123 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
1124 | end | |
1125 | end | |
1126 | if action == "Run" and enabled == true and surface ~= nil then | |
1127 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/3,0,-math.pi/8),armspeed) | |
1128 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/3,0,math.pi/8),armspeed) | |
1129 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,-0.1*math.cos(legangle)*0.5,-0.25) *CFrame.Angles(-math.pi/10-math.sin(legangle*1.25),0,0),legspeed) | |
1130 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1*math.cos(legangle)*0.5,-0.25) *CFrame.Angles(-math.pi/10+math.sin(legangle*1.25),0,0),legspeed) | |
1131 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/10+math.cos(angle*1.25)*0.025,0,0),speed) | |
1132 | lerp(N,N.C0,NC0 *CFrame.Angles(-math.pi/10+math.cos(angle*1.25)*0.025,0,0),speed) | |
1133 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(3,0,-2.5) *CFrame.Angles(0,math.pi/2,0),0.6) | |
1134 | end | |
1135 | if HM.Velocity.Y >= 5 and enabled == true and surface == nil then | |
1136 | action = "Jump" | |
1137 | idle = 0 | |
1138 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed) | |
1139 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed) | |
1140 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(-math.pi/10,0,0),legspeed) | |
1141 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.5,-0.5) *CFrame.Angles(-math.pi/8,0,0),legspeed) | |
1142 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
1143 | lerp(N,N.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed) | |
1144 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
1145 | swait() | |
1146 | end | |
1147 | if HM.Velocity.Y <= -5 and enabled == true and surface == nil then | |
1148 | action = "Fall" | |
1149 | idle = 0 | |
1150 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/3,0,0),armspeed) | |
1151 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3),armspeed) | |
1152 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(math.pi/10,0,0),legspeed) | |
1153 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(math.pi/4,0,0),legspeed) | |
1154 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/8,0,0),speed) | |
1155 | lerp(N,N.C0,NC0,speed) | |
1156 | lerp(ClubWeld,ClubWeld.C0,CC0 *CFrame.new(-2.8,0,-0.8) *CFrame.Angles(0,-math.pi/2.5,0),0.6) | |
1157 | swait() | |
1158 | end | |
1159 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude <= 2 then | |
1160 | action = "Idle" | |
1161 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude <= 20 then | |
1162 | action = "Walk" | |
1163 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude > 20 then | |
1164 | action = "Run" | |
1165 | end | |
1166 | swait() | |
1167 | end |