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