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