· 8 years ago · May 24, 2018, 01:56 PM
1-- Objects
2
3local ScreenGui = Instance.new("ScreenGui")
4local Body = Instance.new("Frame")
5local TextButton = Instance.new("TextButton")
6local TextButton_2 = Instance.new("TextButton")
7local TextLabel = Instance.new("TextLabel")
8local TextButton_3 = Instance.new("TextButton")
9local TextButton_4 = Instance.new("TextButton")
10
11-- Properties
12
13ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
14
15Body.Name = "Body"
16Body.Parent = ScreenGui
17Body.BackgroundColor3 = Color3.new(0, 0, 1)
18Body.Position = UDim2.new(-0.0111642741, 0, 0.169977918, 0)
19Body.Size = UDim2.new(0, 234, 0, 210)
20
21TextButton.Parent = Body
22TextButton.BackgroundColor3 = Color3.new(0.333333, 1, 0)
23TextButton.Position = UDim2.new(0.02991453, 0, 0.163461536, 0)
24TextButton.Size = UDim2.new(0, 83, 0, 50)
25TextButton.Font = Enum.Font.SourceSans
26TextButton.Text = "Ban Hammer v1"
27TextButton.TextColor3 = Color3.new(0, 0, 0)
28TextButton.TextSize = 14
29Ban Hammer v1.MouseButton1Down:connect(function()
30 --script goes under here
31--By quuisiYT(quu#9149)
32Player=game:GetService("Players").LocalPlayer
33Character=Player.Character
34char = Character
35local scream = Instance.new("Sound",char.Torso)
36scream.SoundId = "rbxassetid://901030512"
37scream.Volume = 100
38local omg = Instance.new("Sound",char.Torso)
39omg.SoundId = "rbxassetid://1090126885"
40omg.Volume = 1000
41local ban2 = Instance.new("Sound",char.Torso)
42ban2.SoundId = "rbxassetid://135925117"
43ban2.Volume = 100
44local ban = Instance.new("Sound",char.Torso)
45ban.SoundId = "rbxassetid://948494432"
46ban.Volume = 100
47local banh = Instance.new("Part",char)
48banh.Name = "BAN!"
49banh.Size = Vector3.new(1, 5.2, 1)
50banh.CanCollide = false
51local banm = Instance.new("FileMesh",banh)
52banm.MeshId = "http://www.roblox.com/asset/?id=10604848"
53banm.TextureId = "http://www.roblox.com/asset/?id=10605252"
54banm.Scale = Vector3.new(0.5,0.5,0.5)
55local banw = Instance.new("Weld",banh)
56banw.Part0 = banh
57banw.Part1 = char["Right Arm"]
58banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
59PlayerGui=Player.PlayerGui
60Backpack=Player.Backpack
61Torso=Character.Torso
62Head=Character.Head
63Humanoid=Character.Humanoid
64m=Instance.new('Model',Character)
65LeftArm=Character["Left Arm"]
66LeftLeg=Character["Left Leg"]
67RightArm=Character["Right Arm"]
68RightLeg=Character["Right Leg"]
69LS=Torso["Left Shoulder"]
70LH=Torso["Left Hip"]
71RS=Torso["Right Shoulder"]
72RH=Torso["Right Hip"]
73Face = Head.face
74Neck=Torso.Neck
75it=Instance.new
76attacktype=1
77vt=Vector3.new
78cf=CFrame.new
79euler=CFrame.fromEulerAnglesXYZ
80angles=CFrame.Angles
81cloaked=false
82necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
83necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
84LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
85LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
86RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
87RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
88RootPart=Character.HumanoidRootPart
89RootJoint=RootPart.RootJoint
90RootCF=euler(-1.57,0,3.14)
91attack = false
92attackdebounce = false
93deb=false
94equipped=true
95hand=false
96MMouse=nil
97combo=0
98mana=0
99trispeed=1
100pathtrans=.7
101attackmode='none'
102local idle=0
103local Anim="Idle"
104local Effects={}
105local gun=false
106local shoot=false
107player=nil
108cloak=false
109lightcolor='Bright blue'
110
111local Color1=Torso.BrickColor
112
113
114mouse=Player:GetMouse()
115--save shoulders
116RSH, LSH=nil, nil
117--welds
118RW, LW=Instance.new("Weld"), Instance.new("Weld")
119RW.Name="Right Shoulder" LW.Name="Left Shoulder"
120LH=Torso["Left Hip"]
121RH=Torso["Right Hip"]
122TorsoColor=Torso.BrickColor
123function NoOutline(Part)
124Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
125end
126
127
128
129function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
130local fp=it("Part")
131fp.formFactor=formfactor
132fp.Parent=parent
133fp.Reflectance=reflectance
134fp.Transparency=transparency
135fp.CanCollide=false
136fp.Locked=true
137fp.BrickColor=brickcolor
138fp.Name=name
139fp.Size=size
140fp.Position=Torso.Position
141NoOutline(fp)
142fp.Material="SmoothPlastic"
143fp:BreakJoints()
144return fp
145end
146
147function mesh(Mesh,part,meshtype,meshid,offset,scale)
148local mesh=it(Mesh)
149mesh.Parent=part
150if Mesh=="SpecialMesh" then
151mesh.MeshType=meshtype
152if meshid~="nil" then
153mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
154end
155end
156mesh.Offset=offset
157mesh.Scale=scale
158return mesh
159end
160
161function weld(parent,part0,part1,c0)
162local weld=it("Weld")
163weld.Parent=parent
164weld.Part0=part0
165weld.Part1=part1
166weld.C0=c0
167return weld
168end
169
170local Color1=Torso.BrickColor
171
172
173
174
175
176 Player=game:GetService('Players').LocalPlayer
177 Character=Player.Character
178 Mouse=Player:GetMouse()
179 m=Instance.new('Model',Character)
180
181
182 local function weldBetween(a, b)
183 local weldd = Instance.new("ManualWeld")
184 weldd.Part0 = a
185 weldd.Part1 = b
186 weldd.C0 = CFrame.new()
187 weldd.C1 = b.CFrame:inverse() * a.CFrame
188 weldd.Parent = a
189 return weldd
190 end
191
192 it=Instance.new
193
194 function nooutline(part)
195 part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
196 end
197
198 function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
199 local fp=it("Part")
200 fp.formFactor=formfactor
201 fp.Parent=parent
202 fp.Reflectance=reflectance
203 fp.Transparency=transparency
204 fp.CanCollide=false
205 fp.Locked=true
206 fp.BrickColor=BrickColor.new(tostring(brickcolor))
207 fp.Name=name
208 fp.Size=size
209 fp.Position=Character.Torso.Position
210 nooutline(fp)
211 fp.Material=material
212 fp:BreakJoints()
213 return fp
214 end
215
216 function mesh(Mesh,part,meshtype,meshid,offset,scale)
217 local mesh=it(Mesh)
218 mesh.Parent=part
219 if Mesh=="SpecialMesh" then
220 mesh.MeshType=meshtype
221 mesh.MeshId=meshid
222 end
223 mesh.Offset=offset
224 mesh.Scale=scale
225 return mesh
226 end
227
228 function weld(parent,part0,part1,c0,c1)
229 local weld=it("Weld")
230 weld.Parent=parent
231 weld.Part0=part0
232 weld.Part1=part1
233 weld.C0=c0
234 weld.C1=c1
235 return weld
236 end
237
238
239
240
241
242
243
244
245
246--------------------------------
247local p = game.Players.LocalPlayer
248local char = p.Character
249local mouse = p:GetMouse()
250local larm = char["Left Arm"]
251local rarm = char["Right Arm"]
252local lleg = char["Left Leg"]
253local rleg = char["Right Leg"]
254local hed = char.Head
255local torso = char.Torso
256local hum = char.Humanoid
257local cam = game.Workspace.CurrentCamera
258local root = char.HumanoidRootPart
259local deb = false
260local shot = 0
261local debris=game:service"Debris"
262local l = game:GetService("Lighting")
263local rs = game:GetService("RunService").RenderStepped
264ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
265math.randomseed(os.time())
266for i,v in pairs(char:children()) do
267 if v:IsA("Hat") then
268 v:Destroy()
269 end
270end
271for i,v in pairs (hed:GetChildren()) do
272 if v:IsA("Sound") then
273 v:Destroy()
274 end
275end
276----------------------------------------------------
277z = Instance.new("Sound", torso)
278z.SoundId = "rbxassetid://606241996" -- Put Music ID Here.
279z.Looped = true
280z.Volume = 1
281wait(.1)
282z:Play()
283-----------------------------------------------------
284Debounces = {
285CanAttack = true;
286NoIdl = false;
287Slashing = false;
288Slashed = false;
289RPunch = false;
290RPunched = false;
291LPunch = false;
292LPunched = false;
293}
294local Touche = {char.Name, }
295----------------------------------------------------
296----------------------------------------------------
297----------------------------------------------------
298local LocalPlayer = game:GetService("Players").LocalPlayer
299local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
300
301
302local LocalPlayer = game:GetService("Players").LocalPlayer
303local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
304
305Character.Head.Transparency = 0
306
307local Camisa = Instance.new("Part", Character)
308Camisa.Name = "Camisa"
309
310Camisa.CanCollide = false
311Camisa.BrickColor = BrickColor.new("Institutional white")
312Camisa.Transparency = 1
313Camisa.Material = "Plastic"
314Camisa.Size = Vector3.new(1.5, 1.5, 1)
315
316local Weld = Instance.new("Weld", Camisa)
317Weld.Part0 = Character.Torso
318Weld.Part1 = Camisa
319Weld.C1 = CFrame.new(0, 0, 0)
320----------------------------------------
321local p = game.Players.LocalPlayer
322local char = p.Character
323local mouse = p:GetMouse()
324local larm = char["Left Arm"]
325local rarm = char["Right Arm"]
326local lleg = char["Left Leg"]
327local rleg = char["Right Leg"]
328local hed = char.Head
329local torso = char.Torso
330local hum = char.Humanoid
331local cam = game.Workspace.CurrentCamera
332local root = char.HumanoidRootPart
333local rj = root.RootJoint
334local deb = false
335local shot = 0
336local stanceToggle = "Idle1"
337local l = game:GetService("Lighting")
338local rs = game:GetService("RunService").RenderStepped
339local hb = game:GetService("RunService").Heartbeat
340local Stepped = game:GetService("RunService").Stepped
341math.randomseed(os.time())
342hum.JumpPower = 100
343----------------------------------------------------
344fat = Instance.new("BindableEvent",script)
345fat.Name = "Heartbeat"
346
347script:WaitForChild("Heartbeat")
348
349frame = 1/30
350tf = 0
351allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
352tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
353lastframe = tick()
354script.Heartbeat:Fire() --ayy lmao
355
356game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
357 tf = tf + s
358 if tf >= frame then
359 if allowframeloss then
360 script.Heartbeat:Fire()
361 lastframe=tick()
362 else
363 --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
364 for i=1, math.floor(tf/frame) do
365 script.Heartbeat:Fire()
366 end
367 lastframe=tick()
368 end
369 if tossremainder then
370 tf = 0
371 else
372 tf = tf - frame * math.floor(tf/frame)
373 end
374 end
375end)
376----------------------------------------------------
377for i,v in pairs(char:children()) do
378 if v:IsA("Hat") then
379 v:Destroy()
380 end
381end
382for i,v in pairs (hed:GetChildren()) do
383 if v:IsA("Sound") then
384 v:Destroy()
385 end
386end
387----------------------------------------------------
388Debounces = {
389CanAttack = true;
390CanJoke = true;
391NoIdl = false;
392Slashing = false;
393Slashed = false;
394ks = false;
395}
396----------------------------------------------------
397function weld5(part0, part1, c0, c1)
398 weeld=Instance.new("Weld", part0)
399 weeld.Part0=part0
400 weeld.Part1=part1
401 weeld.C0=c0
402 weeld.C1=c1
403 return weeld
404end
405----------------------------------------------------
406function NewPart(prnt,siz,cf,trans,anc,mat,col)
407 local prt=Instance.new("Part")
408 prt.Parent=prnt
409 prt.Name="Part"
410 prt.Size=siz
411 prt.CanCollide=false
412 prt.Anchored=anc
413 prt.Locked=true
414 prt.Transparency = trans
415 prt.TopSurface=10
416 prt.BottomSurface=10
417 prt.FrontSurface=10
418 prt.BackSurface=10
419 prt.LeftSurface=10
420 prt.RightSurface=10
421 prt:BreakJoints()
422 prt.CFrame=cf or CFrame.new(30,10,30)
423 prt.Material=mat
424 prt.BrickColor=BrickColor.new(col)
425 m=Instance.new("SpecialMesh",prt)
426 m.MeshType=6
427 return prt
428end
429----------------------------------------------------
430function lerp(a, b, t) -- Linear interpolation
431 return a + (b - a)*t
432end
433
434function slerp(a, b, t) --Spherical interpolation
435 dot = a:Dot(b)
436 if dot > 0.99999 or dot < -0.99999 then
437 return t <= 0.5 and a or b
438 else
439 r = math.acos(dot)
440 return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
441 end
442end
443
444function matrixInterpolate(a, b, t)
445 local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
446 local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
447 local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
448 local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
449 local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
450 local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
451 local t = v1:Dot(v2)
452 if not (t < 0 or t == 0 or t > 0) then -- Failsafe
453 return CFrame.new()
454 end
455 return CFrame.new(
456 v0.x, v0.y, v0.z,
457 v1.x, v1.y, v1.z,
458 v2.x, v2.y, v2.z,
459 v3.x, v3.y, v3.z)
460end
461----------------------------------------------------
462function genWeld(a,b)
463 local w = Instance.new("Weld",a)
464 w.Part0 = a
465 w.Part1 = b
466 return w
467end
468function weld(a, b)
469 local weld = Instance.new("Weld")
470 weld.Name = "W"
471 weld.Part0 = a
472 weld.Part1 = b
473 weld.C0 = a.CFrame:inverse() * b.CFrame
474 weld.Parent = a
475 return weld;
476end
477----------------------------------------------------
478function Lerp(c1,c2,al)
479 local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
480 local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
481 for i,v in pairs(com1) do
482 com1[i] = v+(com2[i]-v)*al
483 end
484 return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
485end
486----------------------------------------------------
487newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
488 local wld = Instance.new("Weld", wp1)
489 wld.Part0 = wp0
490 wld.Part1 = wp1
491 wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
492end
493----------------------------------------------------
494newWeld(torso, larm, -1.5, 0.5, 0)
495larm.Weld.C1 = CFrame.new(0, 0.5, 0)
496newWeld(torso, rarm, 1.5, 0.5, 0)
497rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
498newWeld(torso, hed, 0, 1.5, 0)
499newWeld(torso, lleg, -0.5, -1, 0)
500lleg.Weld.C1 = CFrame.new(0, 1, 0)
501newWeld(torso, rleg, 0.5, -1, 0)
502rleg.Weld.C1 = CFrame.new(0, 1, 0)
503newWeld(root, torso, 0, -1, 0)
504torso.Weld.C1 = CFrame.new(0, -1, 0)
505----------------------------------------------------
506z = Instance.new("Sound",char) --Smile: print("â?º")
507z.SoundId = "rbxassetid://0"--410761150, 411368002
508z.Looped = true
509z.Pitch = 1
510z.Volume = 1
511wait(0.1)
512z:Play()
513----------------------------------------------------
514New = function(Object, Parent, Name, Data)
515 local Object = Instance.new(Object)
516 for Index, Value in pairs(Data or {}) do
517 Object[Index] = Value
518 end
519 Object.Parent = Parent
520 Object.Name = Name
521 return Object
522end
523----------------------------------------------------
524--Left Arm
525m = Instance.new("Model")
526m.Name = "LeftArm"
527
528p4 = Instance.new("Part", m)
529p4.BrickColor = BrickColor.new("Really black")
530p4.Material = Enum.Material.SmoothPlastic
531p4.Name = "LeftArmPlate"
532p4.Size = Vector3.new(1, 2, 1)
533p4.Transparency = 1
534p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
535p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
536p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
537p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
538p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
539p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
540b4 = Instance.new("SpecialMesh", p4)
541b4.MeshType = Enum.MeshType.Brick
542b4.Name = "Mesh"
543b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
544
545
546
547
548
549w1 = Instance.new("Weld", p1)
550w1.Name = "Part_Weld"
551w1.Part0 = p1
552w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
553w1.Part1 = p2
554w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
555w2 = Instance.new("Weld", p2)
556w2.Name = "Part_Weld"
557w2.Part0 = p2
558w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
559w2.Part1 = p3
560w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
561w3 = Instance.new("Weld", p3)
562w3.Name = "LeftArmPlate_Weld"
563w3.Part0 = p3
564w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
565w3.Part1 = p4
566w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
567w4 = Instance.new("Weld", p4)
568w4.Name = "Part_Weld"
569w4.Part0 = p4
570w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
571w4.Part1 = p5
572w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
573w5 = Instance.new("Weld", p5)
574w5.Name = "Part_Weld"
575w5.Part0 = p5
576w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
577w5.Part1 = p6
578w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
579w6 = Instance.new("Weld", p6)
580w6.Name = "Part_Weld"
581w6.Part0 = p6
582w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
583w6.Part1 = p7
584w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
585w7 = Instance.new("Weld", p7)
586w7.Name = "Part_Weld"
587w7.Part0 = p7
588w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
589w7.Part1 = p8
590w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
591w8 = Instance.new("Weld", p8)
592w8.Name = "Part_Weld"
593w8.Part0 = p8
594w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
595w8.Part1 = p9
596w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
597w9 = Instance.new("Weld", p9)
598w9.Name = "Part_Weld"
599w9.Part0 = p9
600w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
601w9.Part1 = p10
602w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
603w10 = Instance.new("Weld", p10)
604w10.Name = "Part_Weld"
605w10.Part0 = p10
606w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
607w10.Part1 = p11
608w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
609w11 = Instance.new("Weld", p11)
610w11.Name = "Part_Weld"
611w11.Part0 = p11
612w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
613w11.Part1 = p12
614w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
615w12 = Instance.new("Weld", p12)
616w12.Name = "Part_Weld"
617w12.Part0 = p12
618w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
619w12.Part1 = p13
620w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
621w13 = Instance.new("Weld", p13)
622w13.Name = "Part_Weld"
623w13.Part0 = p13
624w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
625w13.Part1 = p14
626w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
627w14 = Instance.new("Weld", p14)
628w14.Name = "Part_Weld"
629w14.Part0 = p14
630w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
631w14.Part1 = p15
632w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
633w15 = Instance.new("Weld", p15)
634w15.Name = "Part_Weld"
635w15.Part0 = p15
636w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
637w15.Part1 = p16
638w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5)
639
640m.Parent = larm
641m:MakeJoints()
642----------------------------------------------------
643local cor = Instance.new("Part", larm.LeftArm)
644cor.Name = "Thingy"
645cor.Locked = true
646cor.BottomSurface = 0
647cor.CanCollide = false
648cor.Size = Vector3.new(1, 1, 1)
649cor.Transparency = 1
650cor.TopSurface = 0
651corw = Instance.new("Weld", cor)
652corw.Part0 = larm
653corw.Part1 = cor
654corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
655corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
656weld1 = Instance.new("Weld", larm.LeftArm)
657weld1.Part0 = cor
658weld1.Part1 = larm.LeftArm.LeftArmPlate
659weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
660--Right Arm
661m2 = Instance.new("Model")
662m2.Name = "RightArm"
663
664p7 = Instance.new("Part", m2)
665p7.BrickColor = BrickColor.new("Institutional white")
666p7.Material = Enum.Material.SmoothPlastic
667p7.Transparency = 1
668p7.Name = "RightArmPlate"
669p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
670p7.FormFactor = Enum.FormFactor.Symmetric
671p7.Size = Vector3.new(1, 2, 1)
672p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
673p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
674p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
675p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
676p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
677p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
678b7 = Instance.new("SpecialMesh", p7)
679b7.MeshType = Enum.MeshType.Brick
680b7.Name = "Mesh"
681b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
682
683
684w1 = Instance.new("Weld", p1)
685w1.Name = "Part_Weld"
686w1.Part0 = p1
687w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
688w1.Part1 = p2
689w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
690w2 = Instance.new("Weld", p2)
691w2.Name = "Part_Weld"
692w2.Part0 = p2
693w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
694w2.Part1 = p3
695w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
696w3 = Instance.new("Weld", p3)
697w3.Name = "Part_Weld"
698w3.Part0 = p3
699w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
700w3.Part1 = p4
701w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
702w4 = Instance.new("Weld", p4)
703w4.Name = "Part_Weld"
704w4.Part0 = p4
705w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
706w4.Part1 = p5
707w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
708w5 = Instance.new("Weld", p5)
709w5.Name = "Part_Weld"
710w5.Part0 = p5
711w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
712w5.Part1 = p6
713w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
714w6 = Instance.new("Weld", p6)
715w6.Name = "RightArmPlate_Weld"
716w6.Part0 = p6
717w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
718w6.Part1 = p7
719w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
720w7 = Instance.new("Weld", p7)
721w7.Name = "Part_Weld"
722w7.Part0 = p7
723w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
724w7.Part1 = p8
725w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
726w8 = Instance.new("Weld", p8)
727w8.Name = "Part_Weld"
728w8.Part0 = p8
729w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
730w8.Part1 = p9
731w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
732w9 = Instance.new("Weld", p9)
733w9.Name = "Part_Weld"
734w9.Part0 = p9
735w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
736w9.Part1 = p10
737w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
738w10 = Instance.new("Weld", p10)
739w10.Name = "Part_Weld"
740w10.Part0 = p10
741w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
742w10.Part1 = p11
743w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
744w11 = Instance.new("Weld", p11)
745w11.Name = "Part_Weld"
746w11.Part0 = p11
747w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
748w11.Part1 = p12
749w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
750w12 = Instance.new("Weld", p12)
751w12.Name = "Part_Weld"
752w12.Part0 = p12
753w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
754w12.Part1 = p13
755w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
756w13 = Instance.new("Weld", p13)
757w13.Name = "Part_Weld"
758w13.Part0 = p13
759w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
760w13.Part1 = p14
761w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
762w14 = Instance.new("Weld", p14)
763w14.Name = "Part_Weld"
764w14.Part0 = p14
765w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
766w14.Part1 = p15
767w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
768w15 = Instance.new("Weld", p15)
769w15.Name = "Part_Weld"
770w15.Part0 = p15
771w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
772w15.Part1 = p16
773w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
774w16 = Instance.new("Weld", p16)
775w16.Name = "Part_Weld"
776w16.Part0 = p16
777w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
778w16.Part1 = p17
779w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
780w17 = Instance.new("Weld", p17)
781w17.Name = "Part_Weld"
782w17.Part0 = p17
783w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
784w17.Part1 = p18
785w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
786w18 = Instance.new("Weld", p18)
787w18.Name = "Part_Weld"
788w18.Part0 = p18
789w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
790w18.Part1 = p19
791w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
792m2.Parent = rarm
793m2:MakeJoints()
794----------------------------------------------------
795local cor2 = Instance.new("Part", rarm.RightArm)
796cor2.Name = "Thingy"
797cor2.Locked = true
798cor2.BottomSurface = 0
799cor2.CanCollide = false
800cor2.Size = Vector3.new(1, 1, 1)
801cor2.Transparency = 1
802cor2.TopSurface = 0
803corw2 = Instance.new("Weld", cor2)
804corw2.Part0 = rarm
805corw2.Part1 = cor2
806corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
807corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
808weld2 = Instance.new("Weld", rarm.RightArm)
809weld2.Part0 = cor2
810weld2.Part1 = rarm.RightArm.RightArmPlate
811weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
812
813
814--Zyrodoxa
815m8 = Instance.new("Model")
816m8.Name = "Zyrodoxa"
817
818p16 = Instance.new("Part", m8)
819p16.BrickColor = BrickColor.new("Instutional white")
820p16.Material = Enum.Material.Metal
821p16.Name = "Handle"
822p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007)
823p16.CanCollide = false
824p16.Locked = true
825p16.FormFactor = Enum.FormFactor.Custom
826p16.Size = Vector3.new(0, 0, 0)
827p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
828p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
829p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
830p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
831p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
832p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
833b16 = Instance.new("BlockMesh", p16)
834b16.Name = "Mesh"
835b16.Scale = Vector3.new(0, 0, 0)
836
837w16 = Instance.new("Weld", p16)
838w16.Name = "Block_Weld"
839w16.Part0 = p16
840w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015)
841w16.Part1 = p17
842w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1)
843
844m8.Parent = rarm
845m8:MakeJoints()
846----------------------------------------------------
847local cor8 = Instance.new("Part", rarm.Zyrodoxa)
848cor8.Name = "Thingy"
849cor8.Locked = true
850cor8.BottomSurface = 0
851cor8.CanCollide = false
852cor8.Size = Vector3.new(1, 1, 1)
853cor8.Transparency = 1
854cor8.TopSurface = 0
855corw8 = Instance.new("Weld", cor8)
856corw8.Part0 = rarm
857corw8.Part1 = cor8
858corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
859corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
860weld8 = Instance.new("Weld", rarm.Zyrodoxa)
861weld8.Part0 = cor8
862weld8.Part1 = rarm.Zyrodoxa.Handle
863weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
864----------------------------------------------------
865models = {m,m2,m3,m4,m5,m6,m7,m8}
866parts = {}
867Stepped:connect(function()
868 for i,v in pairs(models) do
869 for _, a in pairs(v:GetChildren()) do
870 if v:IsA("Part") and v.Name ~= "Thingy" then
871 table.insert(parts, a)
872 for i,v in pairs(parts) do
873 v.CanCollide = false
874 end
875 end
876 end
877 end
878end)
879----------------------------------------------------
880local animpose = "Idle1"
881local lastanimpose = "Idle1"
882local grab = false
883local Smooth = 1
884local sine = 0
885local change = 1
886local val = 0
887local ffing = false
888----------------------------------------------------
889--[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
890
891function FindHumanoids()
892 local function c_region(Position, Size)
893 local SizeOffset = Size/2
894 local Point1 = Position - SizeOffset
895 local Point2 = Position + SizeOffset
896 local a = Instance.new("Part", workspace)
897 a.Anchored = true
898 a.Size = Size
899 a.Position = Position
900 print("Hey!, I'm making a part!")
901 return Region3.new(Point1, Point2)
902 end
903
904 local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
905 local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
906 local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
907 local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
908
909 local regions = {a, b, c, d}
910
911 local found_humanoids = {}
912 local already_found = {char.Name}
913
914 for _, region in pairs(regions) do
915 for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
916 print(part, part.Parent, part.Name) ---nope
917 if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
918 local humanoid = part.Parent:FindFirstChild("Humanoid")
919 local name = humanoid.Parent.Name
920 local exists = false
921 for _, n in pairs(already_found) do
922 if n == name then
923 exists = true
924 end
925 end
926 if not exists then
927 table.insert(already_found, name)
928 table.insert(found_humanoids, humanoid)
929 end
930 elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
931 local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
932 local name = humanoid.Parent.Parent.Name
933 local exists = false
934 for _, n in pairs(already_found) do
935 if n == name then
936 exists = true
937 end
938 end
939 if not exists then
940 table.insert(already_found, name)
941 table.insert(found_humanoids, humanoid)
942 end
943 end
944 end
945 end
946 return found_humanoids
947end
948
949local humanoids = FindHumanoids()
950if #humanoids == 0 then
951 for i, v in pairs(humanoids) do
952 print(v.Parent.Name)
953 if Debounces.Slashing == true then
954 v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
955 elseif Debounces.Slashing == false then
956 wait()
957 end
958 end
959 wait(0.3)
960end]]--
961----------------------------------------------------
962--[[mouse.KeyDown:connect(function(key)
963 if key == "f" then
964 if Debounces.CanAttack == true then
965 Debounces.CanAttack = false
966 Debounces.NoIdl = true
967 Debounces.on = true
968 for i = 1, 20 do
969 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
970 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
971 CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
972 CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
973 CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
974 CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
975 CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
976 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8)
977 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
978 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8)
979 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
980 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5)
981 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5)
982 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
983 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
984 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
985 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1)
986 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
987 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1)
988 if Debounces.on == false then
989 break
990 end
991 fat.Event:wait()
992 end
993 end
994 end
995end)]]--
996----------------------------------------------------
997mod4 = Instance.new("Model",char)
998
999ptez = {0.7, 0.8, 0.9, 1}
1000
1001function FindNearestTorso(Position,Distance,SinglePlayer)
1002 if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
1003 local List = {}
1004 for i,v in pairs(workspace:GetChildren())do
1005 if v:IsA("Model")then
1006 if v:findFirstChild("Torso")then
1007 if v ~= char then
1008 if(v.Torso.Position -Position).magnitude <= Distance then
1009 table.insert(List,v)
1010 end
1011 end
1012 end
1013 end
1014 end
1015 return List
1016end
1017
1018function Slam()
1019 local part=Instance.new('Part',mod4)
1020 part.Anchored=true
1021 part.CanCollide=false
1022 part.FormFactor='Custom'
1023 part.Size=Vector3.new(.2,.2,.2)
1024 part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
1025 part.Transparency=.7
1026 part.BrickColor=BrickColor.new('Really black')
1027 mesh=Instance.new('SpecialMesh',part)
1028 mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
1029 mesh.Scale=Vector3.new(3,3,3)
1030 local part2=Instance.new('Part',mod4)
1031 part2.Anchored=true
1032 part2.CanCollide=false
1033 part2.FormFactor='Custom'
1034 part2.Size=Vector3.new(.2,.2,.2)
1035 part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
1036 part2.Transparency=.7
1037 part2.BrickColor=BrickColor.new('Institutional white')
1038 mesh2=Instance.new('SpecialMesh',part2)
1039 mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
1040 mesh2.Scale=Vector3.new(3,1.5,3)
1041 x = Instance.new("Sound",larm)
1042 x.SoundId = "http://www.roblox.com/asset/?id=142070127"
1043 x.Pitch = ptez[math.random(1,#ptez)]
1044 x.Volume = 1
1045 wait(.1)
1046 x1 = Instance.new("Sound",larm)
1047 x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
1048 x1.Pitch = ptez[math.random(1,#ptez)]
1049 x1.Volume = 1
1050 wait(.1)
1051 x:Play()
1052 x1:Play()
1053 for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
1054 if v:FindFirstChild('Humanoid') then
1055 v.Humanoid:TakeDamage(math.random(30,45))
1056 end
1057 end
1058 coroutine.resume(coroutine.create(function()
1059 for i=0,0.62,0.13 do
1060 wait()
1061 part.CFrame=part.CFrame
1062 part.Transparency=i
1063 mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
1064 part2.CFrame=part2.CFrame
1065 part2.Transparency=i
1066 mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
1067 end
1068 part.Parent=nil
1069 part2.Parent=nil
1070 x:Destroy()
1071 end))
1072end
1073----------------------------------------------------
1074wPart = function(x,y,z,color,tr,cc,an,parent)
1075 local wp = Instance.new('WedgePart',parent or Weapon)
1076 wp.formFactor = 'Custom'
1077 wp.Size = Vector3.new(x,y,z)
1078 wp.BrickColor = BrickColor.new(color)
1079 wp.CanCollide = cc
1080 wp.Transparency = tr
1081 wp.Anchored = an
1082 wp.TopSurface,wp.BottomSurface = 0,0
1083 return wp
1084end
1085
1086Mesh = function(par,num,x,y,z)
1087 local msh = _
1088 if num == 1 then
1089 msh = Instance.new("CylinderMesh",par)
1090 elseif num == 2 then
1091 msh = Instance.new("SpecialMesh",par)
1092 msh.MeshType = 3
1093 elseif num == 3 then
1094 msh = Instance.new("BlockMesh",par)
1095 elseif num == 4 then
1096 msh = Instance.new("SpecialMesh",par)
1097 msh.MeshType = "Torso"
1098 elseif type(num) == 'string' then
1099 msh = Instance.new("SpecialMesh",par)
1100 msh.MeshId = num
1101 end
1102 msh.Scale = Vector3.new(x,y,z)
1103 return msh
1104end
1105
1106local function CFrameFromTopBack(at, top, back)
1107 local right = top:Cross(back)
1108 return CFrame.new(at.x, at.y, at.z,
1109 right.x, top.x, back.x,
1110 right.y, top.y, back.y,
1111 right.z, top.z, back.z)
1112end
1113
1114function Triangle(a, b, c)
1115 local edg1 = (c-a):Dot((b-a).unit)
1116 local edg2 = (a-b):Dot((c-b).unit)
1117 local edg3 = (b-c):Dot((a-c).unit)
1118 if edg1 <= (b-a).magnitude and edg1 >= 0 then
1119 a, b, c = a, b, c
1120 elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1121 a, b, c = b, c, a
1122 elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1123 a, b, c = c, a, b
1124 else
1125 print("unreachable")
1126 end
1127 local len1 = (c-a):Dot((b-a).unit)
1128 local len2 = (b-a).magnitude - len1
1129 local width = (a + (b-a).unit*len1 - c).magnitude
1130 local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1131 local list = {}
1132 if len1 > 0.01 then
1133 local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
1134 local sz = Vector3.new(0.2, width, len1)
1135 w1.Size = sz
1136 local sp = Mesh(w1,2,0,0,0)
1137 sp.MeshType='Wedge'
1138 sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
1139 w1:BreakJoints()
1140 w1.Anchored = true
1141 w1.Transparency = 0.7
1142 Spawn(function()
1143 for i=0,1,0.1 do
1144 fat.Event:wait()
1145 w1.Transparency=w1.Transparency+0.03
1146 end
1147 end)
1148 w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1149 table.insert(list,w1)
1150 end
1151 if len2 > 0.01 then
1152 local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
1153 local sz = Vector3.new(0.2, width, len2)
1154 w2.Size = sz
1155 local sp = Mesh(w2,2,0,0,0)
1156 sp.MeshType='Wedge'
1157 sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
1158 w2:BreakJoints()
1159 w2.Anchored = true
1160 w2.Transparency = 0.7
1161 Spawn(function()
1162 for i=0,1,0.1 do
1163 fat.Event:wait()
1164 w2.Transparency=w2.Transparency+0.03
1165 end
1166 end)
1167 w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1168 table.insert(list,w2)
1169 end
1170 return unpack(list)
1171end
1172
1173function trail(p,t,h)
1174 Spawn(function()
1175 local blcf = p.CFrame
1176 local scfr = blcf
1177 for i=1,t do
1178 local blcf = p.CFrame
1179 if scfr and (p.Position-scfr.p).magnitude > .1 then
1180 local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
1181 if a then game.Debris:AddItem(a,1) end
1182 if b then game.Debris:AddItem(b,1) end
1183 local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
1184 if a then game.Debris:AddItem(a,1) end
1185 if b then game.Debris:AddItem(b,1) end
1186 scfr = blcf
1187 elseif not scfr then
1188 scfr = blcf
1189 end
1190 fat.Event:wait()
1191 end
1192 scfr=nil
1193 end)
1194end
1195--trail(char.Sword.Blade,1e1000,5)
1196----------------------------------------------------
1197function Dmg()
1198 local partofdeath = rarm.Zyrodoxa.Hitbox
1199 local function CreateRegion3FromLocAndSize(Position, Size)
1200 local SizeOffset = Size/2
1201 local Point1 = Position - SizeOffset
1202 local Point2 = Position + SizeOffset
1203 return Region3.new(Point1, Point2)
1204 end
1205 local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
1206 for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
1207 Spawn(function()
1208 if Debounces.Slashing == true and Debounces.Slashed == false then
1209 Debounces.Slashed = true
1210 ypcall(function()
1211 local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
1212 humanoid:TakeDamage(math.random(10,18))
1213 end)
1214 wait(.4)
1215 Debounces.Slashed = false
1216 end
1217 end)
1218 end
1219end
1220----------------------------------------------------
1221pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
1222ptz = {0.7, 0.8, 0.9, 1}
1223idz = {"161006212", "161006195"}
1224function attackone()
1225 for i = 1, 13 do
1226 corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
1227 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
1228 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3)
1229 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
1230 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5)
1231 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5)
1232 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
1233 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
1234 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
1235 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7)
1236 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
1237 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5)
1238 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
1239 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
1240 if Debounces.on == false then
1241 break
1242 end
1243 fat.Event:wait()
1244 end
1245 trail(rarm.Zyrodoxa.Hitbox,20,2)
1246 Debounces.Slashing = true
1247 wait(0.2)
1248 --[[z = Instance.new("Sound", hed)
1249 z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
1250 z.Pitch = ptz[math.random(1,#ptz)]
1251 z.Volume = 1
1252 wait(.01)
1253 z:Play()]]--
1254 for i = 1, 14 do
1255 Dmg()
1256 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
1257 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
1258 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4)
1259 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4)
1260 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4)
1261 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4)
1262 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
1263 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
1264 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
1265 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1266 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
1267 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5)
1268 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
1269 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5)
1270 if Debounces.on == false then break end
1271 rs:wait()
1272 end
1273 Debounces.Slashing = false
1274end
1275function attacktwo()
1276 Debounces.Slashing = true
1277 for i = 1, 14 do
1278 Dmg()
1279 corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
1280 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
1281 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7)
1282 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1283 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5)
1284 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
1285 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5)
1286 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
1287 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
1288 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1289 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
1290 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
1291 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
1292 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
1293 if Debounces.on == false then
1294 break
1295 end
1296 rs:wait()
1297 end
1298end
1299----------------------------------------------------
1300
1301----------------------------------------------------
1302definition = 5
1303bc = {}
1304bezierparts = {}
1305function NoOutline(Part)
1306 Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1307end
1308function draw(p,d)
1309 for i=1,d do
1310 local t = i/d
1311 bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
1312 end
1313
1314 Spawn(function() fat.Event:wait()
1315 for i,v in pairs(bezierparts) do
1316 v.Transparency = 1
1317 end
1318 end)
1319end
1320--local points = {larm.Position,rarn.Position,invisipart.Position}
1321--draw(points,definition)
1322
1323 fat.Event:wait()
1324
1325 rpart = Instance.new("Part",rarm)
1326 NoOutline(rpart)
1327 rpart.Anchored = false
1328 rpart.Size = Vector3.new(1,1,1)
1329 rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
1330 rpart.Transparency = 1
1331 newWeld(rarm, rpart, 0, 0, 0)
1332 rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
1333 lpart = Instance.new("Part",larm)
1334 NoOutline(lpart)
1335 lpart.Anchored = false
1336 lpart.Size = Vector3.new(1,1,1)
1337 lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
1338 lpart.Transparency = 1
1339 newWeld(larm, lpart, 0, 0, 0)
1340 lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
1341 invisipart = Instance.new("Part",torso)
1342 NoOutline(invisipart)
1343 invisipart.Anchored = false
1344 invisipart.Size = Vector3.new(1,1,1)
1345 invisipart.Transparency = 1
1346 invisipart.CFrame = torso.CFrame
1347 newWeld(torso, invisipart, 0, 0, 0)
1348 invisipart.Weld.C1 = CFrame.new(0, 0, 6)
1349 table.insert(bezierparts, rpart)
1350 table.insert(bezierparts, lpart)
1351 table.insert(bezierparts, invisipart)
1352 for i = 1, 40 do
1353 local points = {lpart.Position,invisipart.Position,rpart.Position}
1354 draw(points,definition)
1355 --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
1356 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1)
1357 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1358 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1)
1359 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1360 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2)
1361 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
1362 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
1363 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1364 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
1365 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
1366 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
1367 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
1368 if Debounces.on == false then
1369 break
1370 end
1371 fat.Event:wait()
1372 end
1373 for i,v in pairs(bezierparts) do
1374 v:Destroy()
1375 end
1376 --draw(points,definition)
1377 if Debounces.CanAttack == false then
1378 Debounces.CanAttack = true
1379 Debounces.NoIdl = false
1380 Debounces.on = false
1381 end
1382
1383----------------------------------------------------
1384----------------------------------------------------
1385pt = {6.6, 6.8, 7, 7.2, 7.4}
1386mouse.KeyDown:connect(function(key)
1387 if key == "q" then
1388 if Debounces.CanJoke == true then
1389 Debounces.CanJoke = false
1390 u = Instance.new("Sound",char)
1391 u.SoundId = "http://www.roblox.com/asset/?id=261303790"
1392 u.Pitch = pt[math.random(1,#pt)]
1393 u.Volume = 0.3
1394 u2 = Instance.new("Sound",char)
1395 u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
1396 u2.Pitch = u.Pitch
1397 u2.Volume = 0.3
1398 u3 = Instance.new("Sound",char)
1399 u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
1400 u3.Pitch = u.Pitch
1401 u3.Volume = 0.3
1402 wait(.01)
1403 u:Play()
1404 u2:Play()
1405 u3:Play()
1406 wait(1.5)
1407 u:Destroy()
1408 u2:Destroy()
1409 u3:Destroy()
1410 if Debounces.CanJoke == false then
1411 Debounces.CanJoke = true
1412 end
1413 end
1414 end
1415end)
1416----------------------------------------------------
1417----------------------------------------------------
1418----------------------------------------------------
1419Grab = false
1420mouse.KeyDown:connect(function(key)
1421 if key == "g" then
1422 Debounces.on = true
1423 Debounces.NoIdl = true
1424 Debounces.ks = true
1425 if Grab == false then
1426 gp = nil
1427 for i = 1, 20 do
1428 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
1429 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1430 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
1431 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1432 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
1433 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1434 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
1435 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1436 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
1437 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1438 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
1439 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1440 if Debounces.on == false then break end
1441 fat.Event:wait()
1442 end
1443 con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
1444 ht = hit.Parent
1445 for i,v in pairs(ht:GetChildren()) do
1446 if v:IsA("Part") then
1447 v.CanCollide = false
1448 v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
1449 end
1450 end
1451 hum1=ht:FindFirstChild('Humanoid')
1452 if hum1 ~= nil then
1453 if Debounces.ks==true then
1454 z = Instance.new("Sound",hed)
1455 z.SoundId = "rbxassetid://169380525"
1456 z.Volume = 1
1457 z:Play()
1458 Debounces.ks=false
1459 end
1460 hum1.PlatformStand=true
1461 hum1:ChangeState'Physics'
1462 gp = ht
1463 Grab = true
1464 asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
1465 asd.Parent = larm
1466 asd.Name = "asd"
1467 asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
1468 stanceToggle = "Grabbed"
1469 --[[elseif hum1 == nil then
1470 con1:disconnect()
1471 wait() return]]--
1472 end
1473 end)
1474 for i = 1, 20 do
1475 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
1476 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1477 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
1478 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1479 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
1480 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1481 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
1482 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1483 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
1484 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1485 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
1486 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1487 if Debounces.on == false then break end
1488 fat.Event:wait()
1489 end
1490 con1:disconnect()
1491 Debounces.on = false
1492 Debounces.NoIdl = false
1493 elseif Grab == true then
1494 Grab = false
1495 --[[for i = 1, 16 do
1496 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
1497 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
1498 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
1499 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
1500 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
1501 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1502 cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
1503 if Debounces.on == false then end
1504 rs:wait()
1505 end]]--
1506 for i = 1, 16 do
1507 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3)
1508 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5)
1509 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3)
1510 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5)
1511 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
1512 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1513 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
1514 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1515 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
1516 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
1517 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1518 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1519 if Debounces.on == false then end
1520 rs:wait()
1521 end
1522 for i = 1, 12 do
1523 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6)
1524 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1525 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6)
1526 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1527 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6)
1528 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1529 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6)
1530 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5)
1531 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
1532 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
1533 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
1534 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
1535 if Debounces.on == false then end
1536 rs:wait()
1537 end
1538 Slam()
1539 if gp ~= nil then
1540 for i,v in pairs(larm:GetChildren()) do
1541 if v.Name == "asd" and v:IsA("Weld") then
1542 v:Remove()
1543 end
1544 if v:IsA("Part") then
1545 v.CanCollide = true
1546 v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
1547 end
1548 end
1549 end
1550 stanceToggle = "Idle1"
1551 --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
1552 bv.maxForce = Vector3.new(400000, 400000, 400000)
1553 bv.P = 125000
1554 bv.velocity = char.Head.CFrame.lookVector * 200]]--
1555 ht=nil
1556 Debounces.on = false
1557 Debounces.NoIdl = false
1558 elseif ht == nil then wait()
1559 Grab = false
1560 Debounces.on = false
1561 Debounces.NoIdl = false
1562 end
1563 end
1564end)
1565----------------------------------------------------
1566Change = false
1567mouse.KeyDown:connect(function(key)
1568 if key == "n" then
1569 if Change == false then
1570 Change = true
1571 stanceToggle = "Idle2"
1572 elseif Change == true then
1573 Change = false
1574 stanceToggle = "Idle1"
1575 end
1576 end
1577end)
1578----------------------------------------------------
1579mouse.KeyDown:connect(function(key)
1580 if string.byte(key) == 52 then
1581 Swing = 2
1582 char.Humanoid.WalkSpeed = 28
1583 end
1584end)
1585mouse.KeyUp:connect(function(key)
1586 if string.byte(key) == 52 then
1587 Swing = 1
1588 char.Humanoid.WalkSpeed = 16
1589 end
1590end)
1591local mouse2 = Player:GetMouse()
1592local running = false
1593
1594mouse2.KeyDown:connect(function(key) -- Run function
1595 if key == "e" then
1596 running = true
1597 local keyConnection = mouse.KeyUp:connect(function(key)
1598 if string.byte(key) == 48 then
1599 running = false
1600 end
1601 end)
1602 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
1603 end
1604end)
1605
1606mouse2.KeyUp:connect(function(key)
1607if key == "e" then
1608running = false
1609Character.Humanoid.WalkSpeed = 16
1610end
1611end)
1612function Ban()
1613 Debounces.on = true
1614 Debounces.NoIdl = true
1615 Debounces.ks = true
1616local hitbox = Instance.new("Part",banh)
1617hitbox.Name = "HurtBox"
1618hitbox.Size = Vector3.new(2.09, 3.4, 1.8)
1619hitbox.Transparency = 1
1620local hitboxwe = Instance.new("Weld",hitbox)
1621hitboxwe.Part0 = hitbox
1622hitboxwe.Part1 = banh
1623hitboxwe.C0 = CFrame.new(0.230496407, 0.228847623, 1.76342273, -0.997520506, -0.0702080652, -0.00486185262, 0.00503299385, -0.00226099882, -0.999983966, 0.070195958, -0.997529984, 0.00260874908)
1624function onTouched(part)
1625 local human = part.Parent:FindFirstChildOfClass("Humanoid")
1626 if human then
1627 human.Parent:Destroy()
1628 ban2:Play()
1629 wait(1.4)
1630 ban:Play()
1631 wait(1.2)
1632 omg:Play()
1633 wait(2.6)
1634 scream:Play()
1635 wait(4.6)
1636 scream:Stop()
1637 end
1638end
1639hitbox.Touched:connect(onTouched)
1640for i = 0,1 , 0.09 do
1641 banw.C0 = banw.C0:lerp(CFrame.new(0.0185546875, -1.99783754, -0.149715185, -0.997520864, 0.00503101526, 0.0701895654, -0.0643144846, -0.469972789, -0.880334616, 0.0285583287, -0.882666826, 0.469131112),i)
1642 game:GetService("RunService").RenderStepped:wait()
1643end
1644hitbox:Destroy()
1645banw.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
1646Debounces.on = false
1647Debounces.NoIdl = false
1648Debounces.ks = false
1649end
1650mouse.Button1Down:connect(Ban)
1651----------------------------------------------------
1652
1653jump = false
1654rs:connect(function()
1655 if char.Humanoid.Jump == true then
1656 jump = true
1657 else
1658 jump = false
1659 end
1660 char.Humanoid.FreeFalling:connect(function(f)
1661 if f then
1662 ffing = true
1663 else
1664 ffing = false
1665 end
1666 end)
1667 sine = sine + change
1668 if jump == true then
1669 animpose = "Jumping"
1670 elseif ffing == true then
1671 animpose = "Freefalling"
1672 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
1673 animpose = "Idle"
1674 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
1675 animpose = "Walking"
1676 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
1677 animpose = "Running"
1678 end
1679 RightLeg = CFrame.new(0.5,-1,0)
1680 LeftLeg = CFrame.new(-0.5,-1,0)
1681
1682 lefth = (torso.CFrame*LeftLeg)
1683 righth = (torso.CFrame*RightLeg)
1684
1685 speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
1686
1687 TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
1688
1689 local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
1690 local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
1691 if animpose ~= lastanimpose then
1692 sine = 0
1693 if Debounces.NoIdl == false then
1694 if stanceToggle == "Idle1" then
1695 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
1696 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
1697 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
1698 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
1699 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
1700 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
1701 elseif stanceToggle == "Idle2" then
1702 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3)
1703 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3)
1704 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2)
1705 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2)
1706 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2)
1707 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2)
1708 end
1709 fat.Event:wait()
1710 end
1711 else
1712 end
1713 lastanimpose = animpose
1714 if Debounces.NoIdl == false then
1715 if animpose == "Idle" then
1716 change = 0.5
1717 if stanceToggle == "Idle1" then
1718 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1719 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3)
1720
1721 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
1722 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1723 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
1724 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1725 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5)
1726 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5)
1727 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
1728 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
1729 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
1730 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1)
1731 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
1732 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1)
1733 elseif stanceToggle == "Idle2" then
1734
1735 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1736 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1)
1737 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
1738 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6)
1739 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
1740 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
1741 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
1742 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
1743 --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3)
1744 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1745 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8)
1746 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8)
1747 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8)
1748 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8)
1749 elseif stanceToggle == "Grabbed" then
1750 grab = true
1751 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1752 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1753 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
1754 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
1755 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3)
1756 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
1757 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
1758 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1759 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
1760 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
1761 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
1762 lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1763 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1764 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1765 end
1766 elseif animpose == "Walking" then
1767 if stanceToggle == "Grabbed" then
1768 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1769 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1770 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
1771 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1772 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3)
1773 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
1774 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
1775 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
1776 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
1777 --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
1778 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
1779 lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
1780 lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1781 rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
1782 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1783 elseif stanceToggle ~= "Grabbed" then
1784 change = 1
1785 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1786 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1787
1788 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
1789 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1790 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
1791 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1792 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
1793 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
1794 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
1795 --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
1796 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
1797 --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
1798 lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
1799 lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1800 --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
1801 rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
1802 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1803 end
1804 elseif animpose == "Running" then
1805 change = 1
1806 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1807 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1808
1809 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
1810 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
1811 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2)
1812 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1813 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2)
1814 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
1815 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2)
1816 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1817 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
1818 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1819 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
1820 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1821 elseif animpose == "Jumping" then
1822
1823 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1824 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1825 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2)
1826 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
1827 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
1828 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1829 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
1830 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
1831 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1832 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
1833 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1834 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
1835 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1836 elseif animpose == "Freefalling" then
1837
1838 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
1839 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1840 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2)
1841 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
1842 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2)
1843 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
1844 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
1845 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
1846 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1847 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
1848 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1849 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2)
1850 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1851 end
1852 end
1853end)
1854hum.MaxHealth = math.huge
1855wait(3)
1856hum.Health = math.huge
1857
1858coroutine.wrap(function()
1859 wait(0.1)
1860 game.Base.CanCollide = false
1861end)
1862
1863
1864TextButton_2.Parent = Body
1865TextButton_2.BackgroundColor3 = Color3.new(1, 0.333333, 1)
1866TextButton_2.Position = UDim2.new(0.47863248, 0, 0.163461536, 0)
1867TextButton_2.Size = UDim2.new(0, 122, 0, 50)
1868TextButton_2.Font = Enum.Font.SourceSans
1869TextButton_2.Text = "Ban Hammer v2"
1870TextButton_2.TextColor3 = Color3.new(0, 0, 0)
1871TextButton_2.TextSize = 14
1872Ban Hammer v2.MouseButton1Down:connect(function()
1873 --script goes under here
1874--//====================================================\\--
1875--|| CREATED BY SHACKLUSTER
1876--\\====================================================//--
1877
1878
1879
1880wait(0.2)
1881
1882
1883
1884Player = game:GetService("Players").LocalPlayer
1885PlayerGui = Player.PlayerGui
1886Cam = workspace.CurrentCamera
1887Backpack = Player.Backpack
1888Character = Player.Character
1889Humanoid = Character.Humanoid
1890Mouse = Player:GetMouse()
1891RootPart = Character["HumanoidRootPart"]
1892Torso = Character["Torso"]
1893Head = Character["Head"]
1894RightArm = Character["Right Arm"]
1895LeftArm = Character["Left Arm"]
1896RightLeg = Character["Right Leg"]
1897LeftLeg = Character["Left Leg"]
1898RootJoint = RootPart["RootJoint"]
1899Neck = Torso["Neck"]
1900RightShoulder = Torso["Right Shoulder"]
1901LeftShoulder = Torso["Left Shoulder"]
1902RightHip = Torso["Right Hip"]
1903LeftHip = Torso["Left Hip"]
1904local sick = Instance.new("Sound",Character)
1905sick.SoundId = "rbxassetid://853707984"
1906sick.Looped = true
1907sick.Pitch = 1
1908sick.Volume = 1
1909sick:Play()
1910
1911IT = Instance.new
1912CF = CFrame.new
1913VT = Vector3.new
1914RAD = math.rad
1915C3 = Color3.new
1916UD2 = UDim2.new
1917BRICKC = BrickColor.new
1918ANGLES = CFrame.Angles
1919EULER = CFrame.fromEulerAnglesXYZ
1920COS = math.cos
1921ACOS = math.acos
1922SIN = math.sin
1923ASIN = math.asin
1924ABS = math.abs
1925MRANDOM = math.random
1926FLOOR = math.floor
1927
1928function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
1929 local NEWMESH = IT(MESH)
1930 if MESH == "SpecialMesh" then
1931 NEWMESH.MeshType = MESHTYPE
1932 if MESHID ~= "nil" and MESHID ~= "" then
1933 NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
1934 end
1935 if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
1936 NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
1937 end
1938 end
1939 NEWMESH.Offset = OFFSET or VT(0, 0, 0)
1940 NEWMESH.Scale = SCALE
1941 NEWMESH.Parent = PARENT
1942 return NEWMESH
1943end
1944
1945function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
1946 local NEWPART = IT("Part")
1947 NEWPART.formFactor = FORMFACTOR
1948 NEWPART.Reflectance = REFLECTANCE
1949 NEWPART.Transparency = TRANSPARENCY
1950 NEWPART.CanCollide = false
1951 NEWPART.Locked = true
1952 NEWPART.Anchored = true
1953 if ANCHOR == false then
1954 NEWPART.Anchored = false
1955 end
1956 NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
1957 NEWPART.Name = NAME
1958 NEWPART.Size = SIZE
1959 NEWPART.Position = Torso.Position
1960 NEWPART.Material = MATERIAL
1961 NEWPART:BreakJoints()
1962 NEWPART.Parent = PARENT
1963 return NEWPART
1964end
1965
1966--//=================================\\
1967--|| CUSTOMIZATION
1968--\\=================================//
1969
1970Player_Size = 1 --Size of the player.
1971Animation_Speed = 3
1972Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
1973
1974local Speed = 16
1975local Effects2 = {}
1976
1977--//=================================\\
1978--|| END OF CUSTOMIZATION
1979--\\=================================//
1980
1981 local function weldBetween(a, b)
1982 local weldd = Instance.new("ManualWeld")
1983 weldd.Part0 = a
1984 weldd.Part1 = b
1985 weldd.C0 = CFrame.new()
1986 weldd.C1 = b.CFrame:inverse() * a.CFrame
1987 weldd.Parent = a
1988 return weldd
1989 end
1990
1991function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
1992local acs = Instance.new("Part")
1993acs.CanCollide = false
1994acs.Anchored = false
1995acs.Size = Vector3.new(0,0,0)
1996acs.CFrame = attachmentpart.CFrame
1997acs.Parent = Character
1998acs.BrickColor = color
1999 local meshs = Instance.new("SpecialMesh")
2000 meshs.MeshId = mesh
2001 meshs.TextureId = texture
2002 meshs.Parent = acs
2003 meshs.Scale = scale
2004 meshs.Offset = offset
2005weldBetween(attachmentpart,acs)
2006end
2007
2008function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
2009if TYPE == "Gem" then
2010 local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
2011 acs.Anchored = false
2012 acs.CanCollide = false
2013 acs.CFrame = PART.CFrame
2014 local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
2015weldBetween(PART,acs)
2016elseif TYPE == "Skull" then
2017 local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
2018 acs.Anchored = false
2019 acs.CanCollide = false
2020 acs.CFrame = PART.CFrame
2021 local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
2022weldBetween(PART,acs)
2023elseif TYPE == "Eye" then
2024 local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
2025 acs.Anchored = false
2026 acs.CanCollide = false
2027 acs.CFrame = PART.CFrame
2028 local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
2029weldBetween(PART,acs)
2030end
2031end
2032
2033--//=================================\\
2034--|| USEFUL VALUES
2035--\\=================================//
2036
2037local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
2038local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
2039local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
2040local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
2041local CHANGEDEFENSE = 0
2042local CHANGEDAMAGE = 0
2043local CHANGEMOVEMENT = 0
2044local ANIM = "Idle"
2045local ATTACK = false
2046local EQUIPPED = false
2047local HOLD = false
2048local COMBO = 1
2049local Rooted = false
2050local SINE = 0
2051local KEYHOLD = false
2052local CHANGE = 2 / Animation_Speed
2053local WALKINGANIM = false
2054local WALK = 0
2055local VALUE1 = false
2056local HITFLOOR = nil
2057local VALUE2 = false
2058local ROBLOXIDLEANIMATION = IT("Animation")
2059ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
2060ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
2061--ROBLOXIDLEANIMATION.Parent = Humanoid
2062local WEAPONGUI = IT("ScreenGui", PlayerGui)
2063WEAPONGUI.Name = "Weapon GUI"
2064local Weapon = IT("Model")
2065Weapon.Name = "Adds"
2066local Delete = IT("Model",Character)
2067Delete.Name = "Banlist"
2068local Effects = IT("Folder", Weapon)
2069Effects.Name = "Effects"
2070local ANIMATOR = Humanoid.Animator
2071local ANIMATE = Character.Animate
2072local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
2073local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
2074local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
2075local HITBLOCKSOUNDS = {"199148933", "199148947"}
2076local UNANCHOR = true
2077
2078local SKILLTEXTCOLOR = C3(0,0,0)
2079
2080--//=================================\\
2081--\\=================================//
2082
2083
2084--//=================================\\
2085--|| SAZERENOS' ARTIFICIAL HEARTBEAT
2086--\\=================================//
2087
2088ArtificialHB = Instance.new("BindableEvent", script)
2089ArtificialHB.Name = "ArtificialHB"
2090
2091script:WaitForChild("ArtificialHB")
2092
2093frame = Frame_Speed
2094tf = 0
2095allowframeloss = false
2096tossremainder = false
2097lastframe = tick()
2098script.ArtificialHB:Fire()
2099
2100game:GetService("RunService").Heartbeat:connect(function(s, p)
2101 tf = tf + s
2102 if tf >= frame then
2103 if allowframeloss then
2104 script.ArtificialHB:Fire()
2105 lastframe = tick()
2106 else
2107 for i = 1, math.floor(tf / frame) do
2108 script.ArtificialHB:Fire()
2109 end
2110 lastframe = tick()
2111 end
2112 if tossremainder then
2113 tf = 0
2114 else
2115 tf = tf - frame * math.floor(tf / frame)
2116 end
2117 end
2118end)
2119
2120--//=================================\\
2121--\\=================================//
2122
2123
2124
2125
2126
2127--//=================================\\
2128--|| SOME FUNCTIONS
2129--\\=================================//
2130
2131function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
2132 return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
2133end
2134
2135function PositiveAngle(NUMBER)
2136 if NUMBER >= 0 then
2137 NUMBER = 0
2138 end
2139 return NUMBER
2140end
2141
2142function NegativeAngle(NUMBER)
2143 if NUMBER <= 0 then
2144 NUMBER = 0
2145 end
2146 return NUMBER
2147end
2148
2149function Swait(NUMBER)
2150 if NUMBER == 0 or NUMBER == nil then
2151 ArtificialHB.Event:wait()
2152 else
2153 for i = 1, NUMBER do
2154 ArtificialHB.Event:wait()
2155 end
2156 end
2157end
2158
2159function QuaternionFromCFrame(cf)
2160 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
2161 local trace = m00 + m11 + m22
2162 if trace > 0 then
2163 local s = math.sqrt(1 + trace)
2164 local recip = 0.5 / s
2165 return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
2166 else
2167 local i = 0
2168 if m11 > m00 then
2169 i = 1
2170 end
2171 if m22 > (i == 0 and m00 or m11) then
2172 i = 2
2173 end
2174 if i == 0 then
2175 local s = math.sqrt(m00 - m11 - m22 + 1)
2176 local recip = 0.5 / s
2177 return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
2178 elseif i == 1 then
2179 local s = math.sqrt(m11 - m22 - m00 + 1)
2180 local recip = 0.5 / s
2181 return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
2182 elseif i == 2 then
2183 local s = math.sqrt(m22 - m00 - m11 + 1)
2184 local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
2185 end
2186 end
2187end
2188
2189function QuaternionToCFrame(px, py, pz, x, y, z, w)
2190 local xs, ys, zs = x + x, y + y, z + z
2191 local wx, wy, wz = w * xs, w * ys, w * zs
2192 local xx = x * xs
2193 local xy = x * ys
2194 local xz = x * zs
2195 local yy = y * ys
2196 local yz = y * zs
2197 local zz = z * zs
2198 return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
2199end
2200
2201function QuaternionSlerp(a, b, t)
2202 local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
2203 local startInterp, finishInterp;
2204 if cosTheta >= 0.0001 then
2205 if (1 - cosTheta) > 0.0001 then
2206 local theta = ACOS(cosTheta)
2207 local invSinTheta = 1 / SIN(theta)
2208 startInterp = SIN((1 - t) * theta) * invSinTheta
2209 finishInterp = SIN(t * theta) * invSinTheta
2210 else
2211 startInterp = 1 - t
2212 finishInterp = t
2213 end
2214 else
2215 if (1 + cosTheta) > 0.0001 then
2216 local theta = ACOS(-cosTheta)
2217 local invSinTheta = 1 / SIN(theta)
2218 startInterp = SIN((t - 1) * theta) * invSinTheta
2219 finishInterp = SIN(t * theta) * invSinTheta
2220 else
2221 startInterp = t - 1
2222 finishInterp = t
2223 end
2224 end
2225 return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
2226end
2227
2228function Clerp(a, b, t)
2229 local qa = {QuaternionFromCFrame(a)}
2230 local qb = {QuaternionFromCFrame(b)}
2231 local ax, ay, az = a.x, a.y, a.z
2232 local bx, by, bz = b.x, b.y, b.z
2233 local _t = 1 - t
2234 return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
2235end
2236
2237function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
2238 local frame = IT("Frame")
2239 frame.BackgroundTransparency = TRANSPARENCY
2240 frame.BorderSizePixel = BORDERSIZEPIXEL
2241 frame.Position = POSITION
2242 frame.Size = SIZE
2243 frame.BackgroundColor3 = COLOR
2244 frame.BorderColor3 = BORDERCOLOR
2245 frame.Name = NAME
2246 frame.Parent = PARENT
2247 return frame
2248end
2249
2250function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
2251 local label = IT("TextLabel")
2252 label.BackgroundTransparency = 1
2253 label.Size = UD2(1, 0, 1, 0)
2254 label.Position = UD2(0, 0, 0, 0)
2255 label.TextColor3 = TEXTCOLOR
2256 label.TextStrokeTransparency = STROKETRANSPARENCY
2257 label.TextTransparency = TRANSPARENCY
2258 label.FontSize = TEXTFONTSIZE
2259 label.Font = TEXTFONT
2260 label.BorderSizePixel = BORDERSIZEPIXEL
2261 label.TextScaled = false
2262 label.Text = TEXT
2263 label.Name = NAME
2264 label.Parent = PARENT
2265 return label
2266end
2267
2268function NoOutlines(PART)
2269 PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
2270end
2271
2272
2273function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
2274 local NEWWELD = IT(TYPE)
2275 NEWWELD.Part0 = PART0
2276 NEWWELD.Part1 = PART1
2277 NEWWELD.C0 = C0
2278 NEWWELD.C1 = C1
2279 NEWWELD.Parent = PARENT
2280 return NEWWELD
2281end
2282
2283local SOUND = IT("Sound",nil)
2284
2285function CreateSound(ID, PARENT, VOLUME, PITCH)
2286 local NEWSOUND = nil
2287 coroutine.resume(coroutine.create(function()
2288 NEWSOUND = SOUND:Clone()
2289 NEWSOUND.Parent = PARENT
2290 NEWSOUND.Volume = VOLUME
2291 NEWSOUND.Pitch = PITCH
2292 NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
2293 Swait()
2294 NEWSOUND:play()
2295 game:GetService("Debris"):AddItem(NEWSOUND, 10)
2296 end))
2297 return NEWSOUND
2298end
2299
2300function CFrameFromTopBack(at, top, back)
2301 local right = top:Cross(back)
2302 return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
2303end
2304
2305function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
2306 local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
2307 local mesh = IT("SpecialMesh",wave)
2308 mesh.MeshType = "FileMesh"
2309 mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
2310 mesh.Scale = SIZE
2311 mesh.Offset = VT(0,0,-SIZE.X/8)
2312 wave.CFrame = CFRAME
2313 coroutine.resume(coroutine.create(function(PART)
2314 for i = 1, WAIT do
2315 Swait()
2316 mesh.Scale = mesh.Scale + GROW
2317 mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
2318 if DOESROT == true then
2319 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
2320 end
2321 wave.Transparency = wave.Transparency + (0.5/WAIT)
2322 if wave.Transparency > 0.99 then
2323 wave:remove()
2324 end
2325 end
2326 end))
2327end
2328
2329function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
2330 local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
2331 local mesh = IT("SpecialMesh",wave)
2332 mesh.MeshType = "Sphere"
2333 mesh.Scale = SIZE
2334 mesh.Offset = VT(0,0,0)
2335 wave.CFrame = CFRAME
2336 coroutine.resume(coroutine.create(function(PART)
2337 for i = 1, WAIT do
2338 Swait()
2339 mesh.Scale = mesh.Scale + GROW
2340 wave.Transparency = wave.Transparency + (1/WAIT)
2341 if wave.Transparency > 0.99 then
2342 wave:remove()
2343 end
2344 end
2345 end))
2346end
2347
2348function MakeForm(PART,TYPE)
2349 if TYPE == "Cyl" then
2350 local MSH = IT("CylinderMesh",PART)
2351 elseif TYPE == "Ball" then
2352 local MSH = IT("SpecialMesh",PART)
2353 MSH.MeshType = "Sphere"
2354 elseif TYPE == "Wedge" then
2355 local MSH = IT("SpecialMesh",PART)
2356 MSH.MeshType = "Wedge"
2357 end
2358end
2359
2360function CheckTableForString(Table, String)
2361 for i, v in pairs(Table) do
2362 if string.find(string.lower(String), string.lower(v)) then
2363 return true
2364 end
2365 end
2366 return false
2367end
2368
2369function CheckIntangible(Hit)
2370 local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
2371 if Hit and Hit.Parent then
2372 if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
2373 return true
2374 end
2375 end
2376 return false
2377end
2378
2379Debris = game:GetService("Debris")
2380
2381function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
2382 local Direction = CFrame.new(StartPos, Vec).lookVector
2383 local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
2384 local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
2385 if RayHit and CheckIntangible(RayHit) then
2386 if DelayIfHit then
2387 wait()
2388 end
2389 RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
2390 end
2391 return RayHit, RayPos, RayNormal
2392end
2393
2394function turnto(position)
2395 RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
2396end
2397
2398--//=================================\\
2399--|| WEAPON CREATION
2400--\\=================================//
2401
2402local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
2403local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "10604848", "10605252", VT(1,1,1), VT(0, 2.7, 0))
2404local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-0.8,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
2405
2406for _, c in pairs(Weapon:GetChildren()) do
2407 if c.ClassName == "Part" then
2408 c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
2409 end
2410end
2411
2412Weapon.Parent = Character
2413
2414Humanoid.Died:connect(function()
2415 ATTACK = true
2416end)
2417
2418local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
2419local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
2420
2421local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK+HOLD] Ban Slam", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1")
2422local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Teleport", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2")
2423
2424--//=================================\\
2425--|| DAMAGING
2426--\\=================================//
2427
2428function BAN(CHARACTER)
2429 local BANFOLDER = IT("Folder",Effects)
2430 local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
2431 naeeym2.AlwaysOnTop = false
2432 naeeym2.Size = UDim2.new(5,35,2,35)
2433 naeeym2.StudsOffset = Vector3.new(0,1,0)
2434 naeeym2.Name = "AAAA"
2435 local tecks2 = Instance.new("TextLabel",naeeym2)
2436 tecks2.BackgroundTransparency = 1
2437 tecks2.TextScaled = true
2438 tecks2.BorderSizePixel = 0
2439 tecks2.Text = "BANNED"
2440 tecks2.Font = "Code"
2441 tecks2.TextSize = 30
2442 tecks2.TextStrokeTransparency = 1
2443 tecks2.TextColor3 = Color3.new(1,0,0)
2444 tecks2.TextStrokeColor3 = Color3.new(1,0,0)
2445 tecks2.Size = UDim2.new(1,0,0.5,0)
2446 tecks2.Parent = naeeym2
2447 for i,v in ipairs(CHARACTER:GetChildren()) do
2448 if v.ClassName == "Part" or v.ClassName == "MeshPart" then
2449 if v.Name ~= "HumanoidRootPart" then
2450 local BOD = v:Clone()
2451 BOD.CanCollide = false
2452 BOD.Anchored = true
2453 BOD.CFrame = v.CFrame
2454 BOD.Parent = BANFOLDER
2455 BOD.Material = "Neon"
2456 BOD.Color = C3(1,0,0)
2457 if BOD:FindFirstChildOfClass("Decal") then
2458 BOD:FindFirstChildOfClass("Decal"):remove()
2459 end
2460 if BOD.Name == "Head" then
2461 naeeym2.Adornee = BOD
2462 end
2463 if BOD.ClassName == "MeshPart" then
2464 BOD.TextureID = ""
2465 end
2466 end
2467 end
2468 end
2469 CHARACTER:remove()
2470 coroutine.resume(coroutine.create(function()
2471 for i = 1, 50 do
2472 Swait()
2473 for i,v in ipairs(BANFOLDER:GetChildren()) do
2474 if v.ClassName == "Part" or v.ClassName == "MeshPart" then
2475 v.Transparency = 1
2476 end
2477 naeeym2.Enabled = false
2478 end
2479 Swait()
2480 for i,v in ipairs(BANFOLDER:GetChildren()) do
2481 if v.ClassName == "Part" or v.ClassName == "MeshPart" then
2482 v.Transparency = 0
2483 end
2484 naeeym2.Enabled = true
2485 end
2486 end
2487 BANFOLDER:remove()
2488 end))
2489end
2490
2491function BANNEAREST(POS,RANGE)
2492 for i,v in ipairs(workspace:GetChildren()) do
2493 local body = v:GetChildren()
2494 for part = 1, #body do
2495 if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
2496 if(body[part].Position - POS).Magnitude < RANGE then
2497 if v:FindFirstChildOfClass("Humanoid") then
2498 BAN(v)
2499 if game.Players:FindFirstChild(v.Name) then
2500 local Value = IT("BoolValue",Delete)
2501 Value.Name = v.Name
2502 end
2503 end
2504 end
2505 end
2506 end
2507 end
2508end
2509
2510--//=================================\\
2511--|| ATTACK FUNCTIONS AND STUFF
2512--\\=================================//
2513
2514function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
2515 if FLOOR ~= nil then
2516 coroutine.resume(coroutine.create(function()
2517 local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
2518 PART.CFrame = CF(POSITION)
2519 for i = 1, 45 do
2520 local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
2521 RingPiece.Material = FLOOR.Material
2522 RingPiece.Color = FLOOR.Color
2523 RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
2524 Debris:AddItem(RingPiece,SWAIT/100)
2525 end
2526 PART:remove()
2527 end))
2528 end
2529end
2530
2531function BANSLAM()
2532 ATTACK = true
2533 Rooted = false
2534 repeat
2535 for i=0, 0.2, 0.1 / Animation_Speed do
2536 Swait()
2537 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)),2 / Animation_Speed)
2538 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 7) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
2539 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
2540 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2541 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2542 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
2543 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
2544 end
2545 for i=0, 0.08, 0.1 / Animation_Speed do
2546 Swait()
2547 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
2548 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
2549 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
2550 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2551 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2552 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2553 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2554 end
2555 for i=0, 0.08, 0.1 / Animation_Speed do
2556 Swait()
2557 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
2558 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
2559 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
2560 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2561 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2562 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2563 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2564 end
2565 CreateSound("147722910", Effects, 10, 1)
2566 BANNEAREST(RootPart.CFrame*CF(0,0,-6).p,25)
2567 if HITFLOOR ~= nil then
2568 CreateSound("289842971", HandlePart, 10, 1)
2569 CreateSound("289842971", HandlePart, 10, 1)
2570 CreateSound("289842971", HandlePart, 10, 1)
2571 CreateSound("289842971", HandlePart, 10, 1)
2572 CreateDebreeRing(HITFLOOR,RootPart.CFrame*CF(0,-5,-6).p,5,VT(8,8,8),35)
2573 end
2574 CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,2,"Really red",VT(0,3,0))
2575 CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,-2,"Really red",VT(0,3,0))
2576 for i=0, 0.1, 0.1 / Animation_Speed do
2577 Swait()
2578 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
2579 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
2580 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
2581 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2582 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2583 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2584 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2585 end
2586 if HOLD == true then
2587 for i=0, 0.08, 0.1 / Animation_Speed do
2588 Swait()
2589 if HOLD == false then
2590 break
2591 end
2592 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
2593 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
2594 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
2595 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2596 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2597 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2598 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2599 end
2600 end
2601 until HOLD == false
2602 for i=0, 1, 0.1 / Animation_Speed do
2603 Swait()
2604 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
2605 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
2606 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
2607 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2608 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2609 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2610 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
2611 end
2612 for i=0, 5, 0.1 / Animation_Speed do
2613 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2614 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2615 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2616 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2617 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2618 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2619 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2620 end
2621 ATTACK = false
2622 Rooted = false
2623end
2624
2625--//=================================\\
2626--|| ASSIGN THINGS TO KEYS
2627--\\=================================//
2628
2629function MouseDown(Mouse)
2630 HOLD = true
2631 if ATTACK == false then
2632 BANSLAM()
2633 end
2634end
2635
2636function MouseUp(Mouse)
2637HOLD = false
2638end
2639
2640function KeyDown(Key)
2641 KEYHOLD = true
2642 if Key == "b" and ATTACK == false then
2643 local pos = RootPart.Position
2644 RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),pos)
2645 CreateSound("769380905", Torso, 10, 1)
2646 end
2647
2648 if Key == "t" then
2649 CreateSound("1058417264", Head, 10, 1)
2650 Delete:ClearAllChildren()
2651 end
2652end
2653
2654function KeyUp(Key)
2655 KEYHOLD = false
2656end
2657
2658 Mouse.Button1Down:connect(function(NEWKEY)
2659 MouseDown(NEWKEY)
2660 end)
2661 Mouse.Button1Up:connect(function(NEWKEY)
2662 MouseUp(NEWKEY)
2663 end)
2664 Mouse.KeyDown:connect(function(NEWKEY)
2665 KeyDown(NEWKEY)
2666 end)
2667 Mouse.KeyUp:connect(function(NEWKEY)
2668 KeyUp(NEWKEY)
2669 end)
2670
2671--//=================================\\
2672--\\=================================//
2673
2674
2675function unanchor()
2676 if UNANCHOR == true then
2677 g = Character:GetChildren()
2678 for i = 1, #g do
2679 if g[i].ClassName == "Part" then
2680 g[i].Anchored = false
2681 end
2682 end
2683 end
2684end
2685
2686
2687--//=================================\\
2688--|| WRAP THE WHOLE SCRIPT UP
2689--\\=================================//
2690
2691Humanoid.Changed:connect(function(Jump)
2692 if Jump == "Jump" and (Disable_Jump == true) then
2693 Humanoid.Jump = false
2694 end
2695end)
2696
2697Speed = 23
2698
2699while true do
2700 Swait()
2701 ANIMATE.Parent = nil
2702 local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
2703 IDLEANIMATION:Play()
2704 SINE = SINE + CHANGE
2705 local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2706 local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2707 local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
2708 HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
2709 local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
2710 if ATTACK == false then
2711 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2712 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2713 end
2714 if ANIM == "Walk" and TORSOVELOCITY > 1 and ATTACK == false then
2715 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2716 Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2717 RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2718 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2719 elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or (ATTACK == true) then
2720 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2721 Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2722 RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2723 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2724 end
2725 if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2726 ANIM = "Jump"
2727 if ATTACK == false then
2728 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2729 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2730 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2731 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2732 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2733 end
2734 elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2735 ANIM = "Fall"
2736 if ATTACK == false then
2737 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2738 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2739 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2740 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2741 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2742 end
2743 elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2744 ANIM = "Idle"
2745 if ATTACK == false then
2746 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2747 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2748 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2749 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2750 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2751 end
2752 elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2753 ANIM = "Walk"
2754 WALK = WALK + 1 / Animation_Speed
2755 if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
2756 WALK = 0
2757 if WALKINGANIM == true then
2758 WALKINGANIM = false
2759 elseif WALKINGANIM == false then
2760 WALKINGANIM = true
2761 end
2762 end
2763 --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2764 --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2765 if ATTACK == false then
2766 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2767 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2768 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
2769 RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
2770 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
2771 end
2772 end
2773 unanchor()
2774 Humanoid.MaxHealth = "inf"
2775 Humanoid.Health = "inf"
2776 if Rooted == false then
2777 Disable_Jump = false
2778 Humanoid.WalkSpeed = Speed
2779 elseif Rooted == true then
2780 Disable_Jump = true
2781 Humanoid.WalkSpeed = 0
2782 end
2783 local MATHS = {"0","1"}
2784 Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
2785 Humanoid.PlatformStand = false
2786 local GAME = game.Players:GetChildren()
2787 for PLAYER = 1, #GAME do
2788 local PLAY = GAME[PLAYER]
2789 if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then
2790 PLAY.Character:remove()
2791 end
2792 end
2793end
2794
2795--//=================================\\
2796--\\=================================//
2797
2798
2799
2800
2801
2802--//====================================================\\--
2803--|| END OF SCRIPT
2804--\\====================================================//--
2805
2806
2807TextLabel.Parent = Body
2808TextLabel.BackgroundColor3 = Color3.new(0.333333, 1, 1)
2809TextLabel.Size = UDim2.new(0, 234, 0, 34)
2810TextLabel.Font = Enum.Font.SourceSans
2811TextLabel.Text = "Ban Hammer Scripts GUI Made By Justmahir"
2812TextLabel.TextColor3 = Color3.new(0, 0, 0)
2813TextLabel.TextSize = 14
2814
2815
2816
2817TextButton_3.Parent = Body
2818TextButton_3.BackgroundColor3 = Color3.new(1, 0, 0)
2819TextButton_3.Position = UDim2.new(0, 0, 0.557692289, 0)
2820TextButton_3.Size = UDim2.new(0, 90, 0, 50)
2821TextButton_3.Font = Enum.Font.SourceSans
2822TextButton_3.Text = "Ban hammer v3"
2823TextButton_3.TextColor3 = Color3.new(0, 0, 0)
2824TextButton_3.TextSize = 14
2825Ban hammer v3.MouseButton1Down:connect(function()
2826 --script goes under here
2827-- By Theamazingnater
2828char = game.Players.LocalPlayer.Character
2829local music = Instance.new("Sound",char)
2830music.Volume = 1
2831music.SoundId = "rbxassetid://853707984"
2832music.Looped = true
2833music:Play()
2834local ban = Instance.new("Sound",char.Torso)
2835ban.SoundId = "rbxassetid://147722910"
2836ban.Volume = 10
2837local banh = Instance.new("Part",char)
2838banh.Name = "BAN!"
2839banh.Size = Vector3.new(1, 5.2, 1)
2840banh.CanCollide = false
2841local banm = Instance.new("FileMesh",banh)
2842banm.MeshId = "http://www.roblox.com/asset/?id=10604848"
2843banm.TextureId = "http://www.roblox.com/asset/?id=10605252"
2844banm.Scale = Vector3.new(0.5,0.5,0.5)
2845local weld = Instance.new("Weld",banh)
2846weld.Part0 = banh
2847weld.Part1 = char["Right Arm"]
2848weld.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
2849mouse = game.Players.LocalPlayer:GetMouse()
2850local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
2851game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
2852local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
2853llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
2854llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
2855llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
2856local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
2857game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
2858local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
2859rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
2860rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
2861rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
2862local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
2863local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
2864rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
2865rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
2866rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
2867local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
2868local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
2869lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
2870lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
2871lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
2872local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
2873game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
2874local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
2875humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
2876humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
2877local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
2878local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
2879headweld.Part0 = game.Players.LocalPlayer.Character.Torso
2880headweld.Part1 = game.Players.LocalPlayer.Character.Head
2881headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
2882using = false
2883cananimate = true
2884for i = 0,1 , 0.03 do
2885 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
2886 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.398939848, -0.585105896, 1.00000012, 3.85171006e-10, 1.11758709e-08, 9.31322042e-09, -0.0281364974, -0.99960357, -1.16415322e-10, 0.999603391, -0.0281365328),i)
2887 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.75279808, -1.92294025, 0, 0.985477746, 0.16980496, 0, -0.16980496, 0.985477746, 0, 0, 0, 1),i)
2888 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.696445823, -1.93322277, 0, 0.946795106, -0.321837038, 0, 0.321837038, 0.946795106, 0, 0, 0, 1),i)
2889 game:GetService("RunService").RenderStepped:wait()
2890end
2891function Ban(dude)
2892 local display = dude:FindFirstChild("Head"):Clone()
2893 display.Parent = workspace
2894 display.Transparency = 1
2895 display:FindFirstChildOfClass("Decal"):Destroy()
2896 display.Anchored = true
2897 display.CanCollide = false
2898 local txt = Instance.new("BillboardGui", display)
2899 txt.Adornee = display
2900 txt.Name = "Nametag"
2901 txt.Size = UDim2.new(2, 0, 1.2, 0)
2902 txt.StudsOffset = Vector3.new(-9, 6, 0)
2903 local text = Instance.new("TextLabel", txt)
2904 text.Size = UDim2.new(10, 0, 7, 0)
2905 text.TextSize = 30
2906 text.Font = Enum.Font.Arcade
2907 text.TextScaled = false
2908 text.BackgroundTransparency = 1
2909 text.TextColor3 = BrickColor.new("Really blue").Color
2910 text.TextStrokeTransparency = 0
2911 text.TextStrokeColor3 = Color3.new(0,0,0)
2912 text.Text = "Banned!"
2913 game:GetService("Debris"):AddItem(display,2)
2914 dude:Destroy()
2915end
2916
2917function swing()
2918 if not using then
2919 using = true
2920 cananimate = false
2921 for i = 0,1 , 0.045 do
2922 weld.C0 = weld.C0:lerp(CFrame.new(0.152735472, -1.66358948, -1.08551645, -0.0427260287, 0.00281231292, 0.999082863, -0.999074996, 0.00474835932, -0.0427390598, -0.00486420048, -0.999984741, 0.00260683335),i)
2923 headweld.C0 = headweld.C0:lerp(CFrame.new(-4.65661287e-10, 1.49999952, 0, 0.601507425, -2.32830644e-10, 0.798867226, 3.0559022e-10, 1, 0, -0.798867226, -4.65661287e-10, 0.601507425),i)
2924 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.63088727, -0.00573391188, -0.775853336, 0, 0.999972701, -0.00739025697, 0.775874496, 0.00466241874, 0.630870044),i)
2925 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(0.0363237262, 0.350219727, -1.1563791, 0.495106995, -0.857149601, 0.1419992, 0.110766649, -0.0998312235, -0.988819599, 0.861742377, 0.505300522, 0.0455164276),i)
2926 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50056481, 0.516354084, -0.499166548, 0.995925009, -0.00520473719, 0.09003409, 0.0901844054, 0.0574772507, -0.994265079, -2.98023224e-08, 0.998333335, 0.057712432),i)
2927 game:GetService("RunService").RenderStepped:wait()
2928 end
2929 local hitbox = Instance.new("Part",banh)
2930 hitbox.Name = "HurtBox"
2931 hitbox.Size = Vector3.new(2.09, 3.4, 1.8)
2932 hitbox.Transparency = 1
2933 local hitboxwe = Instance.new("Weld",hitbox)
2934 hitboxwe.Part0 = hitbox
2935 hitboxwe.Part1 = banh
2936 hitboxwe.C0 = CFrame.new(0.230496407, 0.228847623, 1.76342273, -0.997520506, -0.0702080652, -0.00486185262, 0.00503299385, -0.00226099882, -0.999983966, 0.070195958, -0.997529984, 0.00260874908)
2937 function getbanned(part)
2938 local human = part.Parent:FindFirstChildOfClass("Humanoid")
2939 if human then
2940 ban:Play()
2941 Ban(human.Parent)
2942 end
2943 end
2944 hitbox.Touched:connect(getbanned)
2945 for i = 0,1 , 0.08 do
2946 headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0249017328, 1.48724031, 2.04332173e-06, 0.499998868, 0, -0.866026163, 0, 1, 0, 0.866026163, 0, 0.499998868),i)
2947 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.305942208, 0, -0.952050149, 0, 1, 0, 0.952050149, 0, 0.305942208):inverse(),i)
2948 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.07653618, 0.305679321, -0.818206966, 0.707105398, -0.707108259, 4.32133675e-07, 0.122787982, 0.122786887, -0.984807909, 0.696365714, 0.696363032, 0.173647687),i)
2949 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.74788636, 0.363031864, -0.7663396, 0.70710665, 0.707106948, -2.23517418e-08, -0.0616280138, 0.061627958, -0.99619478, -0.704416275, 0.704416037, 0.0871551335),i)
2950 game:GetService("RunService").RenderStepped:wait()
2951 end
2952 using = false
2953 cananimate = true
2954 hitbox:Destroy()
2955 weld.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
2956 end
2957end
2958mouse.Button1Down:connect(swing)
2959
2960while true do
2961 if cananimate then
2962 --Walking animation
2963 if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
2964 for i = 0.1,0.3 , 0.008 do
2965 if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
2966 headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
2967 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
2968 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53402293, 0.0594797134, 0.144087285, 0.997264206, 0.0707819909, 0.0213012099, -0.0739177391, 0.9549582, 0.287386209, 2.98023224e-08, -0.28817457, 0.957577825),i)
2969 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54035091, 0.0769848824, -0.170524538, 0.99592495, -0.0847774297, 0.0307573378, 0.090184398, 0.936214805, -0.339659303, 0, 0.341049016, 0.940045416),i)
2970 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i)
2971 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i)
2972 game:GetService("RunService").Stepped:wait()
2973 end
2974 end
2975 for i = 0.1,0.3 , 0.008 do
2976 if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
2977 headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
2978 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
2979 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i)
2980 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i)
2981 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53173375, 0.0903658867, -0.222393572, 0.997264206, 0.0662034005, -0.0328776538, -0.0739177391, 0.893185973, -0.443570435, 2.98023224e-08, 0.444787204, 0.895636141),i)
2982 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54079688, 0.0720610619, 0.156226337, 0.99592495, -0.085669145, -0.0281783342, 0.090184398, 0.946062148, 0.311179608, 0, -0.312452823, 0.949932992),i)
2983 game:GetService("RunService").Stepped:wait()
2984 end
2985 end
2986 -- Idle animation
2987 elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then
2988 for i = 0,1 , 0.1 do
2989 if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate then
2990 headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
2991 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
2992 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
2993 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.398939848, -0.585105896, 1.00000012, 3.85171006e-10, 1.11758709e-08, 9.31322042e-09, -0.0281364974, -0.99960357, -1.16415322e-10, 0.999603391, -0.0281365328),i)
2994 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.75279808, -1.92294025, 0, 0.985477746, 0.16980496, 0, -0.16980496, 0.985477746, 0, 0, 0, 1),i)
2995 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.696445823, -1.93322277, 0, 0.946795106, -0.321837038, 0, 0.321837038, 0.946795106, 0, 0, 0, 1),i)
2996 game:GetService("RunService").RenderStepped:wait()
2997 end
2998 end
2999 end
3000 end
3001 wait()
3002end
3003
3004
3005
3006
3007
3008TextButton_4.Parent = Body
3009TextButton_4.BackgroundColor3 = Color3.new(1, 1, 0)
3010TextButton_4.Position = UDim2.new(0.47863248, 0, 0.557692289, 0)
3011TextButton_4.Size = UDim2.new(0, 122, 0, 50)
3012TextButton_4.Font = Enum.Font.SourceSans
3013TextButton_4.Text = "Ban Hammer v4"
3014TextButton_4.TextColor3 = Color3.new(0, 0, 0)
3015TextButton_4.TextSize = 14
3016Ban Hammer v4.MouseButton1Down:connect(function()
3017 --script goes under here
3018-----------------------
3019--[[ Name : God ]]--
3020-------------------------------------------------------
3021--A script By makhail07
3022
3023--Discord Creterisk#2958
3024
3025--NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
3026--IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
3027--DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
3028--YOU FUCKING SKIDS,
3029--For Those who log/decompile this, If you sell or trade this,
3030--and I find out who you are, i will take massive action.
3031
3032-------------------------------------------------------
3033
3034local FavIDs = {
3035 340106355, --Nefl Crystals
3036 927529620, --Dimension
3037 876981900, --Fantasy
3038 398987889, --Ordinary Days
3039 1117396305, --Oh wait, it's you.
3040 885996042, --Action Winter Journey
3041 919231299, --Sprawling Idiot Effigy
3042 743466274, --Good Day Sunshine
3043 727411183, --Knife Fight
3044 1402748531, --The Earth Is Counting On You!
3045 595230126 --Robot Language
3046 }
3047
3048
3049
3050--The reality of my life isn't real but a Universe -makhail07
3051wait()
3052local plr = game:service'Players'.LocalPlayer
3053print('Local User is '..plr.Name)
3054print('God Loaded')
3055print('hahahAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
3056local char = plr.Character
3057local hum = char.Humanoid
3058local hed = char.Head
3059local root = char.HumanoidRootPart
3060local rootj = root.RootJoint
3061local tors = char.Torso
3062local ra = char["Right Arm"]
3063local la = char["Left Arm"]
3064local rl = char["Right Leg"]
3065local ll = char["Left Leg"]
3066local neck = tors["Neck"]
3067local mouse = plr:GetMouse()
3068local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
3069local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
3070local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
3071local maincolor = BrickColor.new("Institutional white")
3072
3073
3074-------------------------------------------------------
3075--Start Good Stuff--
3076-------------------------------------------------------
3077cam = game.Workspace.CurrentCamera
3078CF = CFrame.new
3079angles = CFrame.Angles
3080attack = false
3081Euler = CFrame.fromEulerAnglesXYZ
3082Rad = math.rad
3083IT = Instance.new
3084BrickC = BrickColor.new
3085Cos = math.cos
3086Acos = math.acos
3087Sin = math.sin
3088Asin = math.asin
3089Abs = math.abs
3090Mrandom = math.random
3091Floor = math.floor
3092-------------------------------------------------------
3093--End Good Stuff--
3094-------------------------------------------------------
3095necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
3096RSH, LSH = nil, nil
3097RW = Instance.new("Weld")
3098LW = Instance.new("Weld")
3099RH = tors["Right Hip"]
3100LH = tors["Left Hip"]
3101RSH = tors["Right Shoulder"]
3102LSH = tors["Left Shoulder"]
3103RSH.Parent = nil
3104LSH.Parent = nil
3105RW.Name = "RW"
3106RW.Part0 = tors
3107RW.C0 = CF(1.5, 0.5, 0)
3108RW.C1 = CF(0, 0.5, 0)
3109RW.Part1 = ra
3110RW.Parent = tors
3111LW.Name = "LW"
3112LW.Part0 = tors
3113LW.C0 = CF(-1.5, 0.5, 0)
3114LW.C1 = CF(0, 0.5, 0)
3115LW.Part1 = la
3116LW.Parent = tors
3117Effects = {}
3118-------------------------------------------------------
3119--Start HeartBeat--
3120-------------------------------------------------------
3121ArtificialHB = Instance.new("BindableEvent", script)
3122ArtificialHB.Name = "Heartbeat"
3123script:WaitForChild("Heartbeat")
3124
3125frame = 1 / 60
3126tf = 0
3127allowframeloss = false
3128tossremainder = false
3129
3130
3131lastframe = tick()
3132script.Heartbeat:Fire()
3133
3134
3135game:GetService("RunService").Heartbeat:connect(function(s, p)
3136 tf = tf + s
3137 if tf >= frame then
3138 if allowframeloss then
3139 script.Heartbeat:Fire()
3140 lastframe = tick()
3141 else
3142 for i = 1, math.floor(tf / frame) do
3143 script.Heartbeat:Fire()
3144 end
3145 lastframe = tick()
3146 end
3147 if tossremainder then
3148 tf = 0
3149 else
3150 tf = tf - frame * math.floor(tf / frame)
3151 end
3152 end
3153end)
3154-------------------------------------------------------
3155--End HeartBeat--
3156-------------------------------------------------------
3157
3158-------------------------------------------------------
3159--Start Important Functions--
3160-------------------------------------------------------
3161function swait(num)
3162 if num == 0 or num == nil then
3163 game:service("RunService").Stepped:wait(0)
3164 else
3165 for i = 0, num do
3166 game:service("RunService").Stepped:wait(0)
3167 end
3168 end
3169end
3170function thread(f)
3171 coroutine.resume(coroutine.create(f))
3172end
3173function clerp(a, b, t)
3174 local qa = {
3175 QuaternionFromCFrame(a)
3176 }
3177 local qb = {
3178 QuaternionFromCFrame(b)
3179 }
3180 local ax, ay, az = a.x, a.y, a.z
3181 local bx, by, bz = b.x, b.y, b.z
3182 local _t = 1 - t
3183 return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
3184end
3185function QuaternionFromCFrame(cf)
3186 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
3187 local trace = m00 + m11 + m22
3188 if trace > 0 then
3189 local s = math.sqrt(1 + trace)
3190 local recip = 0.5 / s
3191 return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
3192 else
3193 local i = 0
3194 if m00 < m11 then
3195 i = 1
3196 end
3197 if m22 > (i == 0 and m00 or m11) then
3198 i = 2
3199 end
3200 if i == 0 then
3201 local s = math.sqrt(m00 - m11 - m22 + 1)
3202 local recip = 0.5 / s
3203 return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
3204 elseif i == 1 then
3205 local s = math.sqrt(m11 - m22 - m00 + 1)
3206 local recip = 0.5 / s
3207 return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
3208 elseif i == 2 then
3209 local s = math.sqrt(m22 - m00 - m11 + 1)
3210 local recip = 0.5 / s
3211 return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
3212 end
3213 end
3214end
3215function QuaternionToCFrame(px, py, pz, x, y, z, w)
3216 local xs, ys, zs = x + x, y + y, z + z
3217 local wx, wy, wz = w * xs, w * ys, w * zs
3218 local xx = x * xs
3219 local xy = x * ys
3220 local xz = x * zs
3221 local yy = y * ys
3222 local yz = y * zs
3223 local zz = z * zs
3224 return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
3225end
3226function QuaternionSlerp(a, b, t)
3227 local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
3228 local startInterp, finishInterp
3229 if cosTheta >= 1.0E-4 then
3230 if 1 - cosTheta > 1.0E-4 then
3231 local theta = math.acos(cosTheta)
3232 local invSinTheta = 1 / Sin(theta)
3233 startInterp = Sin((1 - t) * theta) * invSinTheta
3234 finishInterp = Sin(t * theta) * invSinTheta
3235 else
3236 startInterp = 1 - t
3237 finishInterp = t
3238 end
3239 elseif 1 + cosTheta > 1.0E-4 then
3240 local theta = math.acos(-cosTheta)
3241 local invSinTheta = 1 / Sin(theta)
3242 startInterp = Sin((t - 1) * theta) * invSinTheta
3243 finishInterp = Sin(t * theta) * invSinTheta
3244 else
3245 startInterp = t - 1
3246 finishInterp = t
3247 end
3248 return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
3249end
3250function rayCast(Position, Direction, Range, Ignore)
3251 return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
3252end
3253local RbxUtility = LoadLibrary("RbxUtility")
3254local Create = RbxUtility.Create
3255
3256-------------------------------------------------------
3257--Start Damage Function--
3258-------------------------------------------------------
3259function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
3260 if hit.Parent == nil then
3261 return
3262 end
3263 local h = hit.Parent:FindFirstChildOfClass("Humanoid")
3264 for _, v in pairs(hit.Parent:children()) do
3265 if v:IsA("Humanoid") then
3266 h = v
3267 end
3268 end
3269 if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
3270
3271 hit.Parent:FindFirstChild("Head"):BreakJoints()
3272 end
3273
3274 if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
3275 if hit.Parent:findFirstChild("DebounceHit") ~= nil then
3276 if hit.Parent.DebounceHit.Value == true then
3277 return
3278 end
3279 end
3280 if insta == true then
3281 hit.Parent:FindFirstChild("Head"):BreakJoints()
3282 end
3283 local c = Create("ObjectValue"){
3284 Name = "creator",
3285 Value = game:service("Players").LocalPlayer,
3286 Parent = h,
3287 }
3288 game:GetService("Debris"):AddItem(c, .5)
3289 if HitSound ~= nil and HitPitch ~= nil then
3290 CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
3291 end
3292 local Damage = math.random(minim, maxim)
3293 local blocked = false
3294 local block = hit.Parent:findFirstChild("Block")
3295 if block ~= nil then
3296 if block.className == "IntValue" then
3297 if block.Value > 0 then
3298 blocked = true
3299 block.Value = block.Value - 1
3300 print(block.Value)
3301 end
3302 end
3303 end
3304 if blocked == false then
3305 h.Health = h.Health - Damage
3306 ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
3307 else
3308 h.Health = h.Health - (Damage / 2)
3309 ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
3310 end
3311 if Type == "Knockdown" then
3312 local hum = hit.Parent.Humanoid
3313 hum.PlatformStand = true
3314 coroutine.resume(coroutine.create(function(HHumanoid)
3315 swait(1)
3316 HHumanoid.PlatformStand = false
3317 end), hum)
3318 local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
3319 local bodvol = Create("BodyVelocity"){
3320 velocity = angle * knockback,
3321 P = 5000,
3322 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
3323 Parent = hit,
3324 }
3325 local rl = Create("BodyAngularVelocity"){
3326 P = 3000,
3327 maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
3328 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
3329 Parent = hit,
3330 }
3331 game:GetService("Debris"):AddItem(bodvol, .5)
3332 game:GetService("Debris"):AddItem(rl, .5)
3333 elseif Type == "Normal" then
3334 local vp = Create("BodyVelocity"){
3335 P = 500,
3336 maxForce = Vector3.new(math.huge, 0, math.huge),
3337 velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
3338 }
3339 if knockback > 0 then
3340 vp.Parent = hit.Parent.Torso
3341 end
3342 game:GetService("Debris"):AddItem(vp, .5)
3343 elseif Type == "Up" then
3344 local bodyVelocity = Create("BodyVelocity"){
3345 velocity = Vector3.new(0, 20, 0),
3346 P = 5000,
3347 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
3348 Parent = hit,
3349 }
3350 game:GetService("Debris"):AddItem(bodyVelocity, .5)
3351 elseif Type == "DarkUp" then
3352 coroutine.resume(coroutine.create(function()
3353 for i = 0, 1, 0.1 do
3354 swait()
3355 Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
3356 end
3357 end))
3358 local bodyVelocity = Create("BodyVelocity"){
3359 velocity = Vector3.new(0, 20, 0),
3360 P = 5000,
3361 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
3362 Parent = hit,
3363 }
3364 game:GetService("Debris"):AddItem(bodyVelocity, 1)
3365 elseif Type == "Snare" then
3366 local bp = Create("BodyPosition"){
3367 P = 2000,
3368 D = 100,
3369 maxForce = Vector3.new(math.huge, math.huge, math.huge),
3370 position = hit.Parent.Torso.Position,
3371 Parent = hit.Parent.Torso,
3372 }
3373 game:GetService("Debris"):AddItem(bp, 1)
3374 elseif Type == "Freeze" then
3375 local BodPos = Create("BodyPosition"){
3376 P = 50000,
3377 D = 1000,
3378 maxForce = Vector3.new(math.huge, math.huge, math.huge),
3379 position = hit.Parent.Torso.Position,
3380 Parent = hit.Parent.Torso,
3381 }
3382 local BodGy = Create("BodyGyro") {
3383 maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
3384 P = 20e+003,
3385 Parent = hit.Parent.Torso,
3386 cframe = hit.Parent.Torso.CFrame,
3387 }
3388 hit.Parent.Torso.Anchored = true
3389 coroutine.resume(coroutine.create(function(Part)
3390 swait(1.5)
3391 Part.Anchored = false
3392 end), hit.Parent.Torso)
3393 game:GetService("Debris"):AddItem(BodPos, 3)
3394 game:GetService("Debris"):AddItem(BodGy, 3)
3395 end
3396 local debounce = Create("BoolValue"){
3397 Name = "DebounceHit",
3398 Parent = hit.Parent,
3399 Value = true,
3400 }
3401 game:GetService("Debris"):AddItem(debounce, Delay)
3402 c = Create("ObjectValue"){
3403 Name = "creator",
3404 Value = Player,
3405 Parent = h,
3406 }
3407 game:GetService("Debris"):AddItem(c, .5)
3408 end
3409end
3410-------------------------------------------------------
3411--End Damage Function--
3412-------------------------------------------------------
3413
3414-------------------------------------------------------
3415--Start Damage Function Customization--
3416-------------------------------------------------------
3417function ShowDamage(Pos, Text, Time, Color)
3418 local Rate = (1 / 30)
3419 local Pos = (Pos or Vector3.new(0, 0, 0))
3420 local Text = (Text or "")
3421 local Time = (Time or 2)
3422 local Color = (Color or Color3.new(1, 0, 1))
3423 local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
3424 EffectPart.Anchored = true
3425 local BillboardGui = Create("BillboardGui"){
3426 Size = UDim2.new(3, 0, 3, 0),
3427 Adornee = EffectPart,
3428 Parent = EffectPart,
3429 }
3430 local TextLabel = Create("TextLabel"){
3431 BackgroundTransparency = 1,
3432 Size = UDim2.new(1, 0, 1, 0),
3433 Text = Text,
3434 Font = "Bodoni",
3435 TextColor3 = Color,
3436 TextScaled = true,
3437 TextStrokeColor3 = Color3.fromRGB(0,0,0),
3438 Parent = BillboardGui,
3439 }
3440 game.Debris:AddItem(EffectPart, (Time))
3441 EffectPart.Parent = game:GetService("Workspace")
3442 delay(0, function()
3443 local Frames = (Time / Rate)
3444 for Frame = 1, Frames do
3445 wait(Rate)
3446 local Percent = (Frame / Frames)
3447 EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
3448 TextLabel.TextTransparency = Percent
3449 end
3450 if EffectPart and EffectPart.Parent then
3451 EffectPart:Destroy()
3452 end
3453 end)
3454end
3455-------------------------------------------------------
3456--End Damage Function Customization--
3457-------------------------------------------------------
3458
3459function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
3460 for _, c in pairs(workspace:children()) do
3461 local hum = c:findFirstChild("Humanoid")
3462 if hum ~= nil then
3463 local head = c:findFirstChild("Head")
3464 if head ~= nil then
3465 local targ = head.Position - Part.Position
3466 local mag = targ.magnitude
3467 if magni >= mag and c.Name ~= plr.Name then
3468 Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
3469 end
3470 end
3471 end
3472 end
3473end
3474
3475
3476CFuncs = {
3477 Part = {
3478 Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
3479 local Part = Create("Part")({
3480 Parent = Parent,
3481 Reflectance = Reflectance,
3482 Transparency = Transparency,
3483 CanCollide = false,
3484 Locked = true,
3485 BrickColor = BrickColor.new(tostring(BColor)),
3486 Name = Name,
3487 Size = Size,
3488 Material = Material
3489 })
3490 RemoveOutlines(Part)
3491 return Part
3492 end
3493 },
3494 Mesh = {
3495 Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
3496 local Msh = Create(Mesh)({
3497 Parent = Part,
3498 Offset = OffSet,
3499 Scale = Scale
3500 })
3501 if Mesh == "SpecialMesh" then
3502 Msh.MeshType = MeshType
3503 Msh.MeshId = MeshId
3504 end
3505 return Msh
3506 end
3507 },
3508 Mesh = {
3509 Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
3510 local Msh = Create(Mesh)({
3511 Parent = Part,
3512 Offset = OffSet,
3513 Scale = Scale
3514 })
3515 if Mesh == "SpecialMesh" then
3516 Msh.MeshType = MeshType
3517 Msh.MeshId = MeshId
3518 end
3519 return Msh
3520 end
3521 },
3522 Weld = {
3523 Create = function(Parent, Part0, Part1, C0, C1)
3524 local Weld = Create("Weld")({
3525 Parent = Parent,
3526 Part0 = Part0,
3527 Part1 = Part1,
3528 C0 = C0,
3529 C1 = C1
3530 })
3531 return Weld
3532 end
3533 },
3534 Sound = {
3535 Create = function(id, par, vol, pit)
3536 coroutine.resume(coroutine.create(function()
3537 local S = Create("Sound")({
3538 Volume = vol,
3539 Pitch = pit or 1,
3540 SoundId = id,
3541 Parent = par or workspace
3542 })
3543 wait()
3544 S:play()
3545 game:GetService("Debris"):AddItem(S, 6)
3546 end))
3547 end
3548 },
3549 ParticleEmitter = {
3550 Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
3551 local fp = Create("ParticleEmitter")({
3552 Parent = Parent,
3553 Color = ColorSequence.new(Color1, Color2),
3554 LightEmission = LightEmission,
3555 Size = Size,
3556 Texture = Texture,
3557 Transparency = Transparency,
3558 ZOffset = ZOffset,
3559 Acceleration = Accel,
3560 Drag = Drag,
3561 LockedToPart = LockedToPart,
3562 VelocityInheritance = VelocityInheritance,
3563 EmissionDirection = EmissionDirection,
3564 Enabled = Enabled,
3565 Lifetime = LifeTime,
3566 Rate = Rate,
3567 Rotation = Rotation,
3568 RotSpeed = RotSpeed,
3569 Speed = Speed,
3570 VelocitySpread = VelocitySpread
3571 })
3572 return fp
3573 end
3574 }
3575}
3576function RemoveOutlines(part)
3577 part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
3578end
3579function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
3580 local Part = Create("Part")({
3581 formFactor = FormFactor,
3582 Parent = Parent,
3583 Reflectance = Reflectance,
3584 Transparency = Transparency,
3585 CanCollide = false,
3586 Locked = true,
3587 BrickColor = BrickColor.new(tostring(BColor)),
3588 Name = Name,
3589 Size = Size,
3590 Material = Material
3591 })
3592 RemoveOutlines(Part)
3593 return Part
3594end
3595function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
3596 local Msh = Create(Mesh)({
3597 Parent = Part,
3598 Offset = OffSet,
3599 Scale = Scale
3600 })
3601 if Mesh == "SpecialMesh" then
3602 Msh.MeshType = MeshType
3603 Msh.MeshId = MeshId
3604 end
3605 return Msh
3606end
3607function CreateWeld(Parent, Part0, Part1, C0, C1)
3608 local Weld = Create("Weld")({
3609 Parent = Parent,
3610 Part0 = Part0,
3611 Part1 = Part1,
3612 C0 = C0,
3613 C1 = C1
3614 })
3615 return Weld
3616end
3617
3618
3619-------------------------------------------------------
3620--Start Effect Function--
3621-------------------------------------------------------
3622EffectModel = Instance.new("Model", char)
3623Effects = {
3624 Block = {
3625 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
3626 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
3627 prt.Anchored = true
3628 prt.CFrame = cframe
3629 local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
3630 game:GetService("Debris"):AddItem(prt, 10)
3631 if Type == 1 or Type == nil then
3632 table.insert(Effects, {
3633 prt,
3634 "Block1",
3635 delay,
3636 x3,
3637 y3,
3638 z3,
3639 msh
3640 })
3641 elseif Type == 2 then
3642 table.insert(Effects, {
3643 prt,
3644 "Block2",
3645 delay,
3646 x3,
3647 y3,
3648 z3,
3649 msh
3650 })
3651 else
3652 table.insert(Effects, {
3653 prt,
3654 "Block3",
3655 delay,
3656 x3,
3657 y3,
3658 z3,
3659 msh
3660 })
3661 end
3662 end
3663 },
3664 Sphere = {
3665 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
3666 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
3667 prt.Anchored = true
3668 prt.CFrame = cframe
3669 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
3670 game:GetService("Debris"):AddItem(prt, 10)
3671 table.insert(Effects, {
3672 prt,
3673 "Cylinder",
3674 delay,
3675 x3,
3676 y3,
3677 z3,
3678 msh
3679 })
3680 end
3681 },
3682 Cylinder = {
3683 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
3684 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
3685 prt.Anchored = true
3686 prt.CFrame = cframe
3687 local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
3688 game:GetService("Debris"):AddItem(prt, 10)
3689 table.insert(Effects, {
3690 prt,
3691 "Cylinder",
3692 delay,
3693 x3,
3694 y3,
3695 z3,
3696 msh
3697 })
3698 end
3699 },
3700 Wave = {
3701 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
3702 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
3703 prt.Anchored = true
3704 prt.CFrame = cframe
3705 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
3706 game:GetService("Debris"):AddItem(prt, 10)
3707 table.insert(Effects, {
3708 prt,
3709 "Cylinder",
3710 delay,
3711 x3 / 60,
3712 y3 / 60,
3713 z3 / 60,
3714 msh
3715 })
3716 end
3717 },
3718 Ring = {
3719 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
3720 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
3721 prt.Anchored = true
3722 prt.CFrame = cframe
3723 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
3724 game:GetService("Debris"):AddItem(prt, 10)
3725 table.insert(Effects, {
3726 prt,
3727 "Cylinder",
3728 delay,
3729 x3,
3730 y3,
3731 z3,
3732 msh
3733 })
3734 end
3735 },
3736 Break = {
3737 Create = function(brickcolor, cframe, x1, y1, z1)
3738 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
3739 prt.Anchored = true
3740 prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
3741 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
3742 local num = math.random(10, 50) / 1000
3743 game:GetService("Debris"):AddItem(prt, 10)
3744 table.insert(Effects, {
3745 prt,
3746 "Shatter",
3747 num,
3748 prt.CFrame,
3749 math.random() - math.random(),
3750 0,
3751 math.random(50, 100) / 100
3752 })
3753 end
3754 },
3755Spiral = {
3756 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
3757 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
3758 prt.Anchored = true
3759 prt.CFrame = cframe
3760 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
3761 game:GetService("Debris"):AddItem(prt, 10)
3762 table.insert(Effects, {
3763 prt,
3764 "Cylinder",
3765 delay,
3766 x3,
3767 y3,
3768 z3,
3769 msh
3770 })
3771 end
3772 },
3773Push = {
3774 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
3775 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
3776 prt.Anchored = true
3777 prt.CFrame = cframe
3778 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
3779 game:GetService("Debris"):AddItem(prt, 10)
3780 table.insert(Effects, {
3781 prt,
3782 "Cylinder",
3783 delay,
3784 x3,
3785 y3,
3786 z3,
3787 msh
3788 })
3789 end
3790 }
3791}
3792function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
3793 local fp = IT("Part")
3794 fp.formFactor = formfactor
3795 fp.Parent = parent
3796 fp.Reflectance = reflectance
3797 fp.Transparency = transparency
3798 fp.CanCollide = false
3799 fp.Locked = true
3800 fp.BrickColor = brickcolor
3801 fp.Name = name
3802 fp.Size = size
3803 fp.Position = tors.Position
3804 RemoveOutlines(fp)
3805 fp.Material = "SmoothPlastic"
3806 fp:BreakJoints()
3807 return fp
3808end
3809
3810function mesh(Mesh,part,meshtype,meshid,offset,scale)
3811 local mesh = IT(Mesh)
3812 mesh.Parent = part
3813 if Mesh == "SpecialMesh" then
3814 mesh.MeshType = meshtype
3815 if meshid ~= "nil" then
3816 mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
3817 end
3818 end
3819 mesh.Offset = offset
3820 mesh.Scale = scale
3821 return mesh
3822end
3823
3824function Magic(bonuspeed, type, pos, scale, value, color, MType)
3825 local type = type
3826 local rng = Instance.new("Part", char)
3827 rng.Anchored = true
3828 rng.BrickColor = color
3829 rng.CanCollide = false
3830 rng.FormFactor = 3
3831 rng.Name = "Ring"
3832 rng.Material = "Neon"
3833 rng.Size = Vector3.new(1, 1, 1)
3834 rng.Transparency = 0
3835 rng.TopSurface = 0
3836 rng.BottomSurface = 0
3837 rng.CFrame = pos
3838 local rngm = Instance.new("SpecialMesh", rng)
3839 rngm.MeshType = MType
3840 rngm.Scale = scale
3841 local scaler2 = 1
3842 if type == "Add" then
3843 scaler2 = 1 * value
3844 elseif type == "Divide" then
3845 scaler2 = 1 / value
3846 end
3847 coroutine.resume(coroutine.create(function()
3848 for i = 0, 10 / bonuspeed, 0.1 do
3849 swait()
3850 if type == "Add" then
3851 scaler2 = scaler2 - 0.01 * value / bonuspeed
3852 elseif type == "Divide" then
3853 scaler2 = scaler2 - 0.01 / value * bonuspeed
3854 end
3855 rng.Transparency = rng.Transparency + 0.01 * bonuspeed
3856 rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
3857 end
3858 rng:Destroy()
3859 end))
3860end
3861
3862function Eviscerate(dude)
3863 if dude.Name ~= char then
3864 local bgf = IT("BodyGyro", dude.Head)
3865 bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
3866 local val = IT("BoolValue", dude)
3867 val.Name = "IsHit"
3868 local ds = coroutine.wrap(function()
3869 dude:WaitForChild("Head"):BreakJoints()
3870 wait(0.5)
3871 target = nil
3872 coroutine.resume(coroutine.create(function()
3873 for i, v in pairs(dude:GetChildren()) do
3874 if v:IsA("Accessory") then
3875 v:Destroy()
3876 end
3877 if v:IsA("Humanoid") then
3878 v:Destroy()
3879 end
3880 if v:IsA("CharacterMesh") then
3881 v:Destroy()
3882 end
3883 if v:IsA("Model") then
3884 v:Destroy()
3885 end
3886 if v:IsA("Part") or v:IsA("MeshPart") then
3887 for x, o in pairs(v:GetChildren()) do
3888 if o:IsA("Decal") then
3889 o:Destroy()
3890 end
3891 end
3892 coroutine.resume(coroutine.create(function()
3893 v.Material = "Neon"
3894 v.CanCollide = false
3895 local PartEmmit1 = IT("ParticleEmitter", v)
3896 PartEmmit1.LightEmission = 1
3897 PartEmmit1.Texture = "rbxassetid://284205403"
3898 PartEmmit1.Color = ColorSequence.new(maincolor.Color)
3899 PartEmmit1.Rate = 150
3900 PartEmmit1.Lifetime = NumberRange.new(1)
3901 PartEmmit1.Size = NumberSequence.new({
3902 NumberSequenceKeypoint.new(0, 0.75, 0),
3903 NumberSequenceKeypoint.new(1, 0, 0)
3904 })
3905 PartEmmit1.Transparency = NumberSequence.new({
3906 NumberSequenceKeypoint.new(0, 0, 0),
3907 NumberSequenceKeypoint.new(1, 1, 0)
3908 })
3909 PartEmmit1.Speed = NumberRange.new(0, 0)
3910 PartEmmit1.VelocitySpread = 30000
3911 PartEmmit1.Rotation = NumberRange.new(-500, 500)
3912 PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
3913 local BodPoss = IT("BodyPosition", v)
3914 BodPoss.P = 3000
3915 BodPoss.D = 1000
3916 BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
3917 BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
3918 v.Color = maincolor.Color
3919 coroutine.resume(coroutine.create(function()
3920 for i = 0, 49 do
3921 swait(1)
3922 v.Transparency = v.Transparency + 0.08
3923 end
3924 wait(0.5)
3925 PartEmmit1.Enabled = false
3926 wait(3)
3927 v:Destroy()
3928 dude:Destroy()
3929 end))
3930 end))
3931 end
3932 end
3933 end))
3934 end)
3935 ds()
3936 end
3937end
3938
3939function FindNearestHead(Position, Distance, SinglePlayer)
3940 if SinglePlayer then
3941 return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
3942 end
3943 local List = {}
3944 for i, v in pairs(workspace:GetChildren()) do
3945 if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
3946 table.insert(List, v)
3947 end
3948 end
3949 return List
3950end
3951
3952function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
3953 local type = type
3954 local rng = Instance.new("Part", char)
3955 rng.Anchored = true
3956 rng.BrickColor = color
3957 rng.CanCollide = false
3958 rng.FormFactor = 3
3959 rng.Name = "Ring"
3960 rng.Material = "Neon"
3961 rng.Size = Vector3.new(1, 1, 1)
3962 rng.Transparency = 0
3963 rng.TopSurface = 0
3964 rng.BottomSurface = 0
3965 rng.CFrame = pos
3966 rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
3967 local rngm = Instance.new("SpecialMesh", rng)
3968 rngm.MeshType = MType
3969 rngm.Scale = Vector3.new(x1, y1, z1)
3970 local scaler2 = 1
3971 local speeder = FastSpeed
3972 if type == "Add" then
3973 scaler2 = 1 * value
3974 elseif type == "Divide" then
3975 scaler2 = 1 / value
3976 end
3977 coroutine.resume(coroutine.create(function()
3978 for i = 0, 10 / bonuspeed, 0.1 do
3979 swait()
3980 if type == "Add" then
3981 scaler2 = scaler2 - 0.01 * value / bonuspeed
3982 elseif type == "Divide" then
3983 scaler2 = scaler2 - 0.01 / value * bonuspeed
3984 end
3985 speeder = speeder - 0.01 * FastSpeed * bonuspeed
3986 rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
3987 rng.Transparency = rng.Transparency + 0.01 * bonuspeed
3988 rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
3989 end
3990 rng:Destroy()
3991 end))
3992end
3993
3994function SoulSteal(dude)
3995if dude.Name ~= char then
3996local bgf = IT("BodyGyro", dude.Head)
3997bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
3998local val = IT("BoolValue", dude)
3999val.Name = "IsHit"
4000local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
4001local soulst = coroutine.wrap(function()
4002local soul = Instance.new("Part",dude)
4003soul.Size = Vector3.new(1,1,1)
4004soul.CanCollide = false
4005soul.Anchored = false
4006soul.Position = torso.Position
4007soul.Transparency = 1
4008local PartEmmit1 = IT("ParticleEmitter", soul)
4009PartEmmit1.LightEmission = 1
4010PartEmmit1.Texture = "rbxassetid://569507414"
4011PartEmmit1.Color = ColorSequence.new(maincolor.Color)
4012PartEmmit1.Rate = 250
4013PartEmmit1.Lifetime = NumberRange.new(1.6)
4014PartEmmit1.Size = NumberSequence.new({
4015 NumberSequenceKeypoint.new(0, 1, 0),
4016 NumberSequenceKeypoint.new(1, 0, 0)
4017})
4018PartEmmit1.Transparency = NumberSequence.new({
4019 NumberSequenceKeypoint.new(0, 0, 0),
4020 NumberSequenceKeypoint.new(1, 1, 0)
4021})
4022PartEmmit1.Speed = NumberRange.new(0, 0)
4023PartEmmit1.VelocitySpread = 30000
4024PartEmmit1.Rotation = NumberRange.new(-360, 360)
4025PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
4026local BodPoss = IT("BodyPosition", soul)
4027BodPoss.P = 3000
4028BodPoss.D = 1000
4029BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
4030BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
4031wait(1.6)
4032soul.Touched:connect(function(hit)
4033 if hit.Parent == char then
4034 soul:Destroy()
4035 end
4036end)
4037wait(1.2)
4038while soul do
4039 swait()
4040 PartEmmit1.Color = ColorSequence.new(maincolor.Color)
4041 BodPoss.Position = tors.Position
4042end
4043end)
4044 soulst()
4045 end
4046end
4047function FaceMouse()
4048local Cam = workspace.CurrentCamera
4049 return {
4050 CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
4051 Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
4052 }
4053end
4054-------------------------------------------------------
4055--End Effect Function--
4056-------------------------------------------------------
4057function Cso(ID, PARENT, VOLUME, PITCH)
4058 local NSound = nil
4059 coroutine.resume(coroutine.create(function()
4060 NSound = IT("Sound", PARENT)
4061 NSound.Volume = VOLUME
4062 NSound.Pitch = PITCH
4063 NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
4064 swait()
4065 NSound:play()
4066 game:GetService("Debris"):AddItem(NSound, 10)
4067 end))
4068 return NSound
4069end
4070function CameraEnshaking(Length, Intensity)
4071 coroutine.resume(coroutine.create(function()
4072 local intensity = 1 * Intensity
4073 local rotM = 0.01 * Intensity
4074 for i = 0, Length, 0.1 do
4075 swait()
4076 intensity = intensity - 0.05 * Intensity / Length
4077 rotM = rotM - 5.0E-4 * Intensity / Length
4078 hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
4079 cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
4080 end
4081 hum.CameraOffset = Vector3.new(0, 0, 0)
4082 end))
4083end
4084function chatfunc(text, color)
4085 local chat = coroutine.wrap(function()
4086 if char:FindFirstChild("TalkingBillBoard") ~= nil then
4087 char:FindFirstChild("TalkingBillBoard"):destroy()
4088 end
4089 local naeeym2 = Instance.new("BillboardGui", char)
4090 naeeym2.Size = UDim2.new(0, 100, 0, 40)
4091 naeeym2.StudsOffset = Vector3.new(0, 5, 0)
4092 naeeym2.Adornee = hed
4093 naeeym2.Name = "TalkingBillBoard"
4094 local tecks2 = Instance.new("TextLabel", naeeym2)
4095 tecks2.BackgroundTransparency = 1
4096 tecks2.BorderSizePixel = 0
4097 tecks2.Text = ""
4098 tecks2.Font = "SciFi"
4099 tecks2.TextSize = 30
4100 tecks2.TextStrokeTransparency = 0
4101 tecks2.TextColor3 = color
4102 tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
4103 tecks2.Size = UDim2.new(1, 0, 0.5, 0)
4104 coroutine.resume(coroutine.create(function()
4105 while true do
4106 swait(1)
4107 tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
4108 tecks2.Rotation = math.random(-5, 5)
4109 end
4110 end))
4111 for i = 1, string.len(text) do
4112 CFuncs.Sound.Create("rbxassetid://274118116", hed, 5.25, 0.115)
4113 tecks2.Text = string.sub(text, 1, i)
4114 swait(1)
4115 end
4116 wait(1)
4117 naeeym2:Destroy()
4118 end)
4119 chat()
4120end
4121-------------------------------------------------------
4122--End Important Functions--
4123-------------------------------------------------------
4124
4125
4126-------------------------------------------------------
4127--Start Customization--
4128-------------------------------------------------------
4129local Player_Size = 1
4130if Player_Size ~= 1 then
4131root.Size = root.Size * Player_Size
4132tors.Size = tors.Size * Player_Size
4133hed.Size = hed.Size * Player_Size
4134ra.Size = ra.Size * Player_Size
4135la.Size = la.Size * Player_Size
4136rl.Size = rl.Size * Player_Size
4137ll.Size = ll.Size * Player_Size
4138----------------------------------------------------------------------------------
4139rootj.Parent = root
4140neck.Parent = tors
4141RW.Parent = tors
4142LW.Parent = tors
4143RH.Parent = tors
4144LH.Parent = tors
4145----------------------------------------------------------------------------------
4146rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
4147rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
4148neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
4149neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
4150RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
4151LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
4152----------------------------------------------------------------------------------
4153RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
4154LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
4155RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
4156LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
4157--hat.Parent = Character
4158end
4159----------------------------------------------------------------------------------
4160local SONG = 703597239
4161local SONG2 = 853707984
4162local Music = Instance.new("Sound",tors)
4163Music.Volume = 2.5
4164Music.Looped = true
4165Music.Pitch = 1 --Pitcher
4166----------------------------------------------------------------------------------
4167local equipped = false
4168local idle = 0
4169local change = 1
4170local val = 0
4171local toim = 0
4172local idleanim = 0.4
4173local sine = 0
4174local Sit = 1
4175----------------------------------------------------------------------------------
4176hum.WalkSpeed = 16
4177hum.JumpPower = 57
4178hum.Animator.Parent = nil
4179----------------------------------------------------------------------------------
4180local Blobby = Instance.new("Part", char)
4181Blobby.Name = "Blob"
4182Blobby.CanCollide = false
4183Blobby.BrickColor = BrickColor.new("Really black")
4184Blobby.Transparency = 0
4185Blobby.Material = "Plastic"
4186Blobby.Size = Vector3.new(1, 1, 2)
4187Blobby.TopSurface = Enum.SurfaceType.Smooth
4188Blobby.BottomSurface = Enum.SurfaceType.Smooth
4189
4190local Weld = Instance.new("Weld", Blobby)
4191Weld.Part0 = ra
4192Weld.Part1 = Blobby
4193Weld.C1 = CFrame.new(0, -2, 1.1)
4194Weld.C0 = CFrame.Angles(Rad(-86),0,0)
4195
4196local M2 = Instance.new("SpecialMesh")
4197M2.Parent = Blobby
4198M2.MeshId = "http://www.roblox.com/asset/?id=10604848"
4199M2.TextureId = "http://www.roblox.com/asset/?id=10605252"
4200M2.Scale = Vector3.new(1, 1, 1)
4201
4202--[[local naeeym2 = Instance.new("BillboardGui",char)
4203naeeym2.AlwaysOnTop = true
4204naeeym2.Size = UDim2.new(5,35,2,15)
4205naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
4206naeeym2.Adornee = hed
4207naeeym2.Name = "Name"
4208--naeeym2.PlayerToHideFrom = Player
4209local tecks2 = Instance.new("TextLabel",naeeym2)
4210tecks2.BackgroundTransparency = 1
4211tecks2.TextScaled = true
4212tecks2.BorderSizePixel = 0
4213tecks2.Text = "Fight Me"
4214tecks2.Font = Enum.Font.Bodoni
4215tecks2.TextSize = 30
4216tecks2.TextStrokeTransparency = 0
4217tecks2.TextColor3 = Color3.new(0, 0, 0)
4218tecks2.TextStrokeColor3 = Color3.new(1, 1, 1)
4219tecks2.Size = UDim2.new(1,0,0.5,0)
4220tecks2.Parent = naeeym2]]
4221-------------------------------------------------------
4222--End Customization--
4223-------------------------------------------------------
4224
4225
4226-------------------------------------------------------
4227--Start Attacks N Stuff--
4228-------------------------------------------------------
4229function Ban()
4230 attack = true
4231 for i = 0, 2.6, 0.1 do
4232 swait()
4233 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2)
4234 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2)
4235 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
4236 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2)
4237 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2)
4238 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2)
4239 end
4240 Cso("147722910", tors, 10, 1)
4241 CameraEnshaking(2, 15)
4242 Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
4243 Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
4244 Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
4245 for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do
4246 if v:FindFirstChild("Head") then
4247 Eviscerate(v)
4248 end
4249 end
4250 for i = 0, 3, 0.1 do
4251 swait()
4252 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3)
4253 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3)
4254 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3)
4255 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3)
4256 RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3)
4257 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3)
4258 end
4259 attack = false
4260end
4261function BigBan()
4262 attack = true
4263 Weld.C0 = CFrame.Angles(Rad(-90), Rad(-25), Rad(0))
4264 for i = 0, 3.6, 0.1 do
4265 swait()
4266 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.2)
4267 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2)
4268 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2)
4269 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2)
4270 RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-225), Rad(-.6), Rad(-45)), 0.2)
4271 LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-225), Rad(-6), Rad(45)), 0.2)
4272 end
4273 Cso("147722910", tors, 10, 1)
4274 CameraEnshaking(2, 15)
4275 Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
4276 Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
4277 Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
4278 for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 14.5)) do
4279 if v:FindFirstChild("Head") then
4280 Eviscerate(v)
4281 end
4282 end
4283 for i = 0, 2.6, 0.1 do
4284 swait()
4285 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(75), Rad(0), Rad(0)), 0.2)
4286 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2)
4287 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2)
4288 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2)
4289 RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-.6), Rad(-45)), 0.2)
4290 LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-6), Rad(45)), 0.2)
4291 end
4292 Weld.C0 = CFrame.Angles(Rad(-86),0,0)
4293 attack = false
4294end
4295function BANN()
4296 attack = true
4297 M2.Scale = Vector3.new(2, 2, 2)
4298 for i = 0, 4.6, 0.1 do
4299 swait()
4300 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2)
4301 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2)
4302 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2)
4303 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2)
4304 RW.C0 = clerp(RW.C0, CF(.6* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2)
4305 LW.C0 = clerp(LW.C0, CF(-.8* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(156), Rad(-.6), Rad(45)), 0.2)
4306 end
4307 Cso("147722910", char, 10, 1)
4308 CameraEnshaking(2, 35)
4309 Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
4310 Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
4311 Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
4312 Effects.Ring.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.1, 2, 2, 0, 0.04)
4313 Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04)
4314 Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02)
4315 Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01)
4316 for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 19.5)) do
4317 if v:FindFirstChild("Head") then
4318 Eviscerate(v)
4319 end
4320 end
4321 for i = 0, 3, 0.1 do
4322 swait()
4323 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3)
4324 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3)
4325 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3)
4326 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3)
4327 RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3)
4328 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3)
4329 end
4330 M2.Scale = Vector3.new(1, 1, 1)
4331 attack = false
4332end
4333-------------------------------------------------------
4334--End Attacks N Stuff--
4335-------------------------------------------------------
4336mouse.KeyDown:connect(function(key)
4337 if string.byte(key) == 48 then
4338 Swing = 2
4339 hum.WalkSpeed = 38.82
4340 end
4341end)
4342mouse.KeyUp:connect(function(key)
4343 if string.byte(key) == 48 then
4344 Swing = 1
4345 hum.WalkSpeed = 16
4346 end
4347end)
4348mouse.KeyDown:connect(function(key)
4349 if attack == false then
4350 if key == 'e' then
4351 BigBan()
4352 elseif key == 'r' then
4353 BANN()
4354 elseif key == 't' then
4355 Cso("1450018171", hed, 10, 1)
4356 end
4357 end
4358end)
4359mouse.Button1Down:connect(function(key)
4360 if attack == false then
4361 Ban()
4362 end
4363end)
4364
4365
4366
4367
4368
4369
4370
4371-------------------------------------------------------
4372--Start Animations--
4373-------------------------------------------------------
4374while true do
4375 swait()
4376 sine = sine + change
4377 local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
4378 local velderp = root.Velocity.y
4379 hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
4380 if equipped == true or equipped == false then
4381 if attack == false then
4382 idle = idle + 1
4383 else
4384 idle = 0
4385 end
4386 --Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -10, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Sphere")
4387 if 1 < root.Velocity.y and hitfloor == nil then
4388 Anim = "Jump"
4389 if attack == false then
4390 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
4391 neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
4392 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
4393 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
4394 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
4395 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
4396 end
4397 elseif -1 > root.Velocity.y and hitfloor == nil then
4398 Anim = "Fall"
4399 if attack == false then
4400 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
4401 neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
4402 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
4403 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
4404 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
4405 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
4406 end
4407 elseif torvel < 1 and hitfloor ~= nil then
4408 Anim = "Idle"
4409 change = 1
4410 if attack == false then
4411 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
4412 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
4413 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
4414 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
4415 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(190), Rad(-.6), Rad(13)), 0.1)
4416 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.1)
4417 end
4418 elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
4419 Anim = "Walk"
4420 change = 1
4421 if attack == false then
4422 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
4423 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 6.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
4424 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8* Player_Size - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
4425 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8* Player_Size + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
4426 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(190) , Rad(8 * Cos(sine / 7)), Rad(13) - ra.RotVelocity.Y / 75), 0.1)
4427 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
4428 end
4429 elseif torvel >= 25 and hitfloor ~= nil then
4430 Anim = "Sprint"
4431 change = 1.35
4432 if attack == false then
4433 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
4434 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
4435 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925* Player_Size - 0.5* Player_Size * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
4436 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925* Player_Size + 0.5* Player_Size * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
4437 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(215) , Rad(8 * Cos(sine / 7)), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
4438 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-75) , Rad(8 * Cos(sine / 7)) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
4439 end
4440 end
4441 end
4442 Music.SoundId = "rbxassetid://"..SONG
4443 Music.Looped = true
4444 Music.Pitch = 1
4445 Music.Volume = 1.5
4446 Music.Parent = tors
4447 Music:Resume()
4448 if 0 < #Effects then
4449 for e = 1, #Effects do
4450 if Effects[e] ~= nil then
4451 local Thing = Effects[e]
4452 if Thing ~= nil then
4453 local Part = Thing[1]
4454 local Mode = Thing[2]
4455 local Delay = Thing[3]
4456 local IncX = Thing[4]
4457 local IncY = Thing[5]
4458 local IncZ = Thing[6]
4459 if 1 >= Thing[1].Transparency then
4460 if Thing[2] == "Block1" then
4461 Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
4462 local Mesh = Thing[1].Mesh
4463 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
4464 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4465 elseif Thing[2] == "Block2" then
4466 Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
4467 local Mesh = Thing[7]
4468 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
4469 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4470 elseif Thing[2] == "Block3" then
4471 Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
4472 local Mesh = Thing[7]
4473 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
4474 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4475 elseif Thing[2] == "Cylinder" then
4476 local Mesh = Thing[1].Mesh
4477 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
4478 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4479 elseif Thing[2] == "Blood" then
4480 local Mesh = Thing[7]
4481 Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
4482 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
4483 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4484 elseif Thing[2] == "Elec" then
4485 local Mesh = Thing[1].Mesh
4486 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
4487 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4488 elseif Thing[2] == "Disappear" then
4489 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4490 elseif Thing[2] == "Shatter" then
4491 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4492 Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
4493 Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
4494 Thing[6] = Thing[6] + Thing[5]
4495 end
4496 else
4497 Part.Parent = nil
4498 table.remove(Effects, e)
4499 end
4500 end
4501 end
4502 end
4503 end
4504end
4505-------------------------------------------------------
4506--End Animations And Script--
4507-------------------------------------------------------