Advertisement
artucox7

Artuco's Ban Hammer

Aug 29th, 2019
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.44 KB | None | 0 0
  1. wait(0.1)
  2. local plr = game.Players.LocalPlayer
  3. local char = plr.Character
  4. local hed = char.Head
  5. local tors = char.Torso
  6. local Torso = tors
  7. local hum = char.Humanoid
  8. local mouse = plr:GetMouse()
  9. local RA = char["Right Arm"]
  10. local LA = char["Left Arm"]
  11. local RL = char["Right Leg"]
  12. local LL = char["Left Leg"]
  13. local root = char.HumanoidRootPart
  14. LS=tors["Left Shoulder"]
  15. LH=tors["Left Hip"]
  16. RS=tors["Right Shoulder"]
  17. RH=tors["Right Hip"]
  18. Neck=tors.Neck
  19. radical = math.rad
  20. angles=CFrame.Angles
  21. random = math.random
  22. Vec3 = Vector3.new
  23. Inst = Instance.new
  24. cFrame = CFrame.new
  25. Euler = CFrame.fromEulerAnglesXYZ
  26. vt = Vector3.new
  27. bc = BrickColor.new
  28. br = BrickColor.random
  29. it = Instance.new
  30. cf = CFrame.new
  31. IT = Instance.new
  32. CF = CFrame.new
  33. VT = Vector3.new
  34. RAD = math.rad
  35. C3 = Color3.new
  36. UD2 = UDim2.new
  37. BRICKC = BrickColor.new
  38. ANGLES = CFrame.Angles
  39. EULER = CFrame.fromEulerAnglesXYZ
  40. COS = math.cos
  41. ACOS = math.acos
  42. SIN = math.sin
  43. ASIN = math.asin
  44. ABS = math.abs
  45. Mrandom = math.random
  46. Cos = math.cos
  47. Acos = math.acos
  48. FLOOR = math.floor
  49. Player_Size = 1 --Size of the player.
  50. Animation_Speed = 1
  51. Frame_Speed = 1 / 30 -- (1 / 30) OR (1 / 60)
  52. CF = CFrame.new
  53. VT = Vector3.new
  54. angles = CFrame.Angles
  55. attack = false
  56. Euler = CFrame.fromEulerAnglesXYZ
  57. Rad = math.rad
  58. IT = Instance.new
  59. BrickC = BrickColor.new
  60. Cos = math.cos
  61. Acos = math.acos
  62. Sin = math.sin
  63. Asin = math.asin
  64. Abs = math.abs
  65. Mrandom = math.random
  66. Floor = math.floor
  67. local CHANGE = 2 / Animation_Speed
  68. local cn = CFrame.new
  69. local mr = math.rad
  70. local angles = CFrame.Angles
  71. local ud = UDim2.new
  72. local c3 = Color3.new
  73. local Speed = 20
  74. local r = 255
  75. local g = 0
  76. local b = 0
  77. local Effects2 = {}
  78. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  79. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  80. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  81. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  82. local idle=0
  83. local Anim="Idle"
  84. local Effects={}
  85. local gun=false
  86. local shoot=false
  87. local sine = 0
  88. local change = 1
  89. local ANIMATE = char.Animate
  90. local ROBLOXIDLEANIMATION = IT("Animation")
  91. local RootPart = char.HumanoidRootPart
  92. local RootJoint = RootPart.RootJoint
  93. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  94. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  95. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  96. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  97. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  98. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  99. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  100. necko=CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  101. necko2=CF(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  102. LHC0=CF(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  103. LHC1=CF(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  104. RHC0=CF(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  105. RHC1=CF(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  106. RootPart=char.HumanoidRootPart
  107. RootJoint=RootPart.RootJoint
  108. RootCF=Euler(-1.57,0,3.14)
  109. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  110. RSH, LSH = nil, nil
  111. RW = Instance.new("Weld")
  112. LW = Instance.new("Weld")
  113. RH = tors["Right Hip"]
  114. LH = tors["Left Hip"]
  115. RSH = tors["Right Shoulder"]
  116. LSH = tors["Left Shoulder"]
  117. RSH.Parent = nil
  118. LSH.Parent = nil
  119. RW.Name = "RW"
  120. RW.Part0 = tors
  121. RW.C0 = CF(1.5, 0.5, 0)
  122. RW.C1 = CF(0, 0.5, 0)
  123. RW.Part1 = RA
  124. RW.Parent = tors
  125. LW.Name = "LW"
  126. LW.Part0 = tors
  127. LW.C0 = CF(-1.5, 0.5, 0)
  128. LW.C1 = CF(0, 0.5, 0)
  129. LW.Part1 = LA
  130. LW.Parent = tors
  131. Effects = {}
  132.  
  133. --Functions
  134.  
  135. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  136. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  137. end
  138.  
  139. function QuaternionFromCFrame(cf)
  140. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  141. local trace = m00 + m11 + m22
  142. if trace > 0 then
  143. local s = math.sqrt(1 + trace)
  144. local recip = 0.5/s
  145. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  146. else
  147. local i = 0
  148. if m11 > m00 then
  149. i = 1
  150. end
  151. if m22 > (i == 0 and m00 or m11) then
  152. i = 2
  153. end
  154. if i == 0 then
  155. local s = math.sqrt(m00-m11-m22+1)
  156. local recip = 0.5/s
  157. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  158. elseif i == 1 then
  159. local s = math.sqrt(m11-m22-m00+1)
  160. local recip = 0.5/s
  161. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  162. elseif i == 2 then
  163. local s = math.sqrt(m22-m00-m11+1)
  164. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  165. end
  166. end
  167. end
  168.  
  169. function kick(reas,plr,timetowait)
  170. wait(timetowait)
  171. plr:Kick(reas)
  172. end
  173.  
  174. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  175. local xs, ys, zs = x + x, y + y, z + z
  176. local wx, wy, wz = w*xs, w*ys, w*zs
  177. local xx = x*xs
  178. local xy = x*ys
  179. local xz = x*zs
  180. local yy = y*ys
  181. local yz = y*zs
  182. local zz = z*zs
  183. 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))
  184. end
  185.  
  186. function QuaternionSlerp(a, b, t)
  187. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  188. local startInterp, finishInterp;
  189. if cosTheta >= 0.0001 then
  190. if (1 - cosTheta) > 0.0001 then
  191. local theta = math.acos(cosTheta)
  192. local invSinTheta = 1/math.sin(theta)
  193. startInterp = math.sin((1-t)*theta)*invSinTheta
  194. finishInterp = math.sin(t*theta)*invSinTheta
  195. else
  196. startInterp = 1-t
  197. finishInterp = t
  198. end
  199. else
  200. if (1+cosTheta) > 0.0001 then
  201. local theta = math.acos(-cosTheta)
  202. local invSinTheta = 1/math.sin(theta)
  203. startInterp = math.sin((t-1)*theta)*invSinTheta
  204. finishInterp = math.sin(t*theta)*invSinTheta
  205. else
  206. startInterp = t-1
  207. finishInterp = t
  208. end
  209. end
  210. 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
  211. end
  212.  
  213. function Clerp(a,b,t)
  214. local qa = {QuaternionFromCFrame(a)}
  215. local qb = {QuaternionFromCFrame(b)}
  216. local ax, ay, az = a.x, a.y, a.z
  217. local bx, by, bz = b.x, b.y, b.z
  218. local _t = 1-t
  219. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  220. end
  221.  
  222. function clerp(a,b,t)
  223. local qa = {QuaternionFromCFrame(a)}
  224. local qb = {QuaternionFromCFrame(b)}
  225. local ax, ay, az = a.x, a.y, a.z
  226. local bx, by, bz = b.x, b.y, b.z
  227. local _t = 1-t
  228. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  229. end
  230.  
  231. function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color)
  232. local type = type
  233. local rng = Instance.new("Part", char)
  234. rng.Anchored = true
  235. rng.BrickColor = color
  236. rng.CanCollide = false
  237. rng.FormFactor = 3
  238. rng.Name = "Ring"
  239. rng.Material = "Neon"
  240. rng.Size = Vector3.new(1, 1, 1)
  241. rng.Transparency = 0
  242. if typeoftrans == "In" then
  243. rng.Transparency = 1
  244. end
  245. rng.TopSurface = 0
  246. rng.BottomSurface = 0
  247. rng.CFrame = pos
  248. local rngm = Instance.new("SpecialMesh", rng)
  249. rngm.MeshType = "FileMesh"
  250. rngm.MeshId = "rbxassetid://20329976"
  251. rngm.Scale = scale
  252. local scaler2 = 1
  253. local scaler2b = 1
  254. if type == "Add" then
  255. scaler2 = 1*value
  256. scaler2b = 1*value2
  257. elseif type == "Divide" then
  258. scaler2 = 1/value
  259. scaler2b = 1/value2
  260. end
  261. local randomrot = math.random(1,2)
  262. coroutine.resume(coroutine.create(function()
  263. for i = 0,10/bonuspeed,0.1 do
  264. wait(0.01)
  265. if type == "Add" then
  266. scaler2 = scaler2 - 0.01*value/bonuspeed
  267. scaler2b = scaler2b - 0.01*value/bonuspeed
  268. elseif type == "Divide" then
  269. scaler2 = scaler2 - 0.01/value*bonuspeed
  270. scaler2b = scaler2b - 0.01/value*bonuspeed
  271. end
  272. if randomrot == 1 then
  273. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
  274. elseif randomrot == 2 then
  275. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
  276. end
  277. if typeoftrans == "Out" then
  278. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  279. elseif typeoftrans == "In" then
  280. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  281. end
  282. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed)
  283. end
  284. rng:Destroy()
  285. end))
  286. end
  287.  
  288.  
  289. o1 = Instance.new("Model")
  290. o2 = Instance.new("Part")
  291. o3 = Instance.new("Part")
  292. o4 = Instance.new("Weld")
  293. o5 = Instance.new("CFrameValue")
  294. o6 = Instance.new("Part")
  295. o7 = Instance.new("Weld")
  296. o8 = Instance.new("CFrameValue")
  297. o9 = Instance.new("Part")
  298. o10 = Instance.new("Weld")
  299. o11 = Instance.new("CFrameValue")
  300. o12 = Instance.new("Part")
  301. o13 = Instance.new("Weld")
  302. o14 = Instance.new("CFrameValue")
  303. o15 = Instance.new("Part")
  304. o16 = Instance.new("Weld")
  305. o17 = Instance.new("CFrameValue")
  306. o18 = Instance.new("Part")
  307. o19 = Instance.new("Weld")
  308. o20 = Instance.new("CFrameValue")
  309. o21 = Instance.new("Part")
  310. o22 = Instance.new("Weld")
  311. o23 = Instance.new("CFrameValue")
  312. o24 = Instance.new("Part")
  313. o25 = Instance.new("Weld")
  314. o26 = Instance.new("CFrameValue")
  315. o27 = Instance.new("Part")
  316. o28 = Instance.new("Weld")
  317. o29 = Instance.new("CFrameValue")
  318. o30 = Instance.new("Part")
  319. o31 = Instance.new("Weld")
  320. o32 = Instance.new("CFrameValue")
  321. o33 = Instance.new("Part")
  322. o34 = Instance.new("Weld")
  323. o35 = Instance.new("CFrameValue")
  324. o36 = Instance.new("Part")
  325. o37 = Instance.new("Weld")
  326. o38 = Instance.new("CFrameValue")
  327. o39 = Instance.new("Part")
  328. o40 = Instance.new("Weld")
  329. o41 = Instance.new("CFrameValue")
  330. o42 = Instance.new("Part")
  331. o43 = Instance.new("Weld")
  332. o44 = Instance.new("CFrameValue")
  333. o45 = Instance.new("Part")
  334. o46 = Instance.new("Weld")
  335. o47 = Instance.new("CFrameValue")
  336. o48 = Instance.new("Part")
  337. o49 = Instance.new("Weld")
  338. o50 = Instance.new("CFrameValue")
  339. o51 = Instance.new("Weld")
  340. o52 = Instance.new("Part")
  341. o53 = Instance.new("Weld")
  342. o54 = Instance.new("CFrameValue")
  343. o1.Name = "BanHammer"
  344. o1.Parent = char
  345. o2.Name = "HitBox2"
  346. o2.Parent = o1
  347. o2.BrickColor = BrickColor.new("Really black")
  348. o2.Transparency = 1
  349. o2.Position = Vector3.new(46.6797943, 11.5916481, 7.21522713)
  350. o2.CanCollide = false
  351. o2.Size = Vector3.new(3.31663537, 2.63672447, 0.804284275)
  352. o2.CFrame = CFrame.new(46.6797943, 11.5916481, 7.21522713, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  353. o2.BottomSurface = Enum.SurfaceType.Smooth
  354. o2.TopSurface = Enum.SurfaceType.Smooth
  355. o2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  356. o2.Position = Vector3.new(46.6797943, 11.5916481, 7.21522713)
  357. o2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  358. o3.Parent = o1
  359. o3.BrickColor = BrickColor.new("Really black")
  360. o3.Position = Vector3.new(46.8207512, 2.59527779, 9.45395088)
  361. o3.CanCollide = false
  362. o3.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
  363. o3.CFrame = CFrame.new(46.8207512, 2.59527779, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  364. o3.BottomSurface = Enum.SurfaceType.Smooth
  365. o3.TopSurface = Enum.SurfaceType.Smooth
  366. o3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  367. o3.Position = Vector3.new(46.8207512, 2.59527779, 9.45395088)
  368. o3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  369. o4.Name = "qCFrameWeldThingy"
  370. o4.Parent = o3
  371. o4.C1 = CFrame.new(-0.140956879, 8.99637032, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  372. o4.Part0 = o2
  373. o4.Part1 = o3
  374. o5.Name = "qRelativeCFrameWeldValue"
  375. o5.Parent = o3
  376. o5.Value = CFrame.new(-0.140956879, 8.99637032, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  377. o6.Parent = o1
  378. o6.BrickColor = BrickColor.new("Really black")
  379. o6.Position = Vector3.new(46.8207512, 3.20056343, 9.45395088)
  380. o6.CanCollide = false
  381. o6.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
  382. o6.CFrame = CFrame.new(46.8207512, 3.20056343, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  383. o6.BottomSurface = Enum.SurfaceType.Smooth
  384. o6.TopSurface = Enum.SurfaceType.Smooth
  385. o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  386. o6.Position = Vector3.new(46.8207512, 3.20056343, 9.45395088)
  387. o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  388. o7.Name = "qCFrameWeldThingy"
  389. o7.Parent = o6
  390. o7.C1 = CFrame.new(-0.140956879, 8.39108467, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  391. o7.Part0 = o2
  392. o7.Part1 = o6
  393. o8.Name = "qRelativeCFrameWeldValue"
  394. o8.Parent = o6
  395. o8.Value = CFrame.new(-0.140956879, 8.39108467, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  396. o9.Parent = o1
  397. o9.BrickColor = BrickColor.new("Really black")
  398. o9.Position = Vector3.new(46.8207512, 2.87719154, 9.45395088)
  399. o9.CanCollide = false
  400. o9.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
  401. o9.CFrame = CFrame.new(46.8207512, 2.87719154, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  402. o9.BottomSurface = Enum.SurfaceType.Smooth
  403. o9.TopSurface = Enum.SurfaceType.Smooth
  404. o9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  405. o9.Position = Vector3.new(46.8207512, 2.87719154, 9.45395088)
  406. o9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  407. o10.Name = "qCFrameWeldThingy"
  408. o10.Parent = o9
  409. o10.C1 = CFrame.new(-0.140956879, 8.71445656, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  410. o10.Part0 = o2
  411. o10.Part1 = o9
  412. o11.Name = "qRelativeCFrameWeldValue"
  413. o11.Parent = o9
  414. o11.Value = CFrame.new(-0.140956879, 8.71445656, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  415. o12.Parent = o1
  416. o12.BrickColor = BrickColor.new("Really black")
  417. o12.Position = Vector3.new(46.8207512, 2.2719059, 9.45395088)
  418. o12.CanCollide = false
  419. o12.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
  420. o12.CFrame = CFrame.new(46.8207512, 2.2719059, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  421. o12.BottomSurface = Enum.SurfaceType.Smooth
  422. o12.TopSurface = Enum.SurfaceType.Smooth
  423. o12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  424. o12.Position = Vector3.new(46.8207512, 2.2719059, 9.45395088)
  425. o12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  426. o13.Name = "qCFrameWeldThingy"
  427. o13.Parent = o12
  428. o13.C1 = CFrame.new(-0.140956879, 9.3197422, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  429. o13.Part0 = o2
  430. o13.Part1 = o12
  431. o14.Name = "qRelativeCFrameWeldValue"
  432. o14.Parent = o12
  433. o14.Value = CFrame.new(-0.140956879, 9.3197422, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  434. o15.Parent = o1
  435. o15.Material = Enum.Material.Marble
  436. o15.BrickColor = BrickColor.new("Dirt brown")
  437. o15.Position = Vector3.new(46.8207512, 11.6165257, 9.45395088)
  438. o15.CanCollide = false
  439. o15.Size = Vector3.new(1.65831769, 2.48747659, 2.48747659)
  440. o15.CFrame = CFrame.new(46.8207512, 11.6165257, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  441. o15.BottomSurface = Enum.SurfaceType.Smooth
  442. o15.TopSurface = Enum.SurfaceType.Smooth
  443. o15.Color = Color3.new(0.301961, 0.239216, 0.239216)
  444. o15.Position = Vector3.new(46.8207512, 11.6165257, 9.45395088)
  445. o15.Color = Color3.new(0.301961, 0.239216, 0.239216)
  446. o16.Name = "qCFrameWeldThingy"
  447. o16.Parent = o15
  448. o16.C1 = CFrame.new(-0.140956879, -0.0248775482, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  449. o16.Part0 = o2
  450. o16.Part1 = o15
  451. o17.Name = "qRelativeCFrameWeldValue"
  452. o17.Parent = o15
  453. o17.Value = CFrame.new(-0.140956879, -0.0248775482, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  454. o18.Parent = o1
  455. o18.Material = Enum.Material.Marble
  456. o18.BrickColor = BrickColor.new("Dark taupe")
  457. o18.Position = Vector3.new(46.8207512, 11.6165257, 9.45395088)
  458. o18.CanCollide = false
  459. o18.Size = Vector3.new(1.3266542, 2.15581298, 4.14579439)
  460. o18.CFrame = CFrame.new(46.8207512, 11.6165257, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  461. o18.BottomSurface = Enum.SurfaceType.Smooth
  462. o18.TopSurface = Enum.SurfaceType.Smooth
  463. o18.Color = Color3.new(0.364706, 0.286275, 0.286275)
  464. o18.Position = Vector3.new(46.8207512, 11.6165257, 9.45395088)
  465. o18.Color = Color3.new(0.364706, 0.286275, 0.286275)
  466. o19.Name = "qCFrameWeldThingy"
  467. o19.Parent = o18
  468. o19.C1 = CFrame.new(-0.140956879, -0.0248775482, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  469. o19.Part0 = o2
  470. o19.Part1 = o18
  471. o20.Name = "qRelativeCFrameWeldValue"
  472. o20.Parent = o18
  473. o20.Value = CFrame.new(-0.140956879, -0.0248775482, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  474. o21.Parent = o1
  475. o21.Material = Enum.Material.Wood
  476. o21.BrickColor = BrickColor.new("Dirt brown")
  477. o21.Position = Vector3.new(46.8207512, 5.33149958, 9.45395088)
  478. o21.CanCollide = false
  479. o21.Size = Vector3.new(0.414579421, 10.662981, 0.414579421)
  480. o21.CFrame = CFrame.new(46.8207512, 5.33149958, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  481. o21.BottomSurface = Enum.SurfaceType.Smooth
  482. o21.TopSurface = Enum.SurfaceType.Smooth
  483. o21.Color = Color3.new(0.266667, 0.215686, 0.211765)
  484. o21.Position = Vector3.new(46.8207512, 5.33149958, 9.45395088)
  485. o21.Color = Color3.new(0.266667, 0.215686, 0.211765)
  486. o22.Name = "qCFrameWeldThingy"
  487. o22.Parent = o21
  488. o22.C1 = CFrame.new(-0.140956879, 6.26014853, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  489. o22.Part0 = o2
  490. o22.Part1 = o21
  491. o23.Name = "qRelativeCFrameWeldValue"
  492. o23.Parent = o21
  493. o23.Value = CFrame.new(-0.140956879, 6.26014853, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  494. o24.Parent = o1
  495. o24.BrickColor = BrickColor.new("Really black")
  496. o24.Position = Vector3.new(46.8207512, 1.94024181, 9.45395088)
  497. o24.CanCollide = false
  498. o24.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
  499. o24.CFrame = CFrame.new(46.8207512, 1.94024181, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  500. o24.BottomSurface = Enum.SurfaceType.Smooth
  501. o24.TopSurface = Enum.SurfaceType.Smooth
  502. o24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  503. o24.Position = Vector3.new(46.8207512, 1.94024181, 9.45395088)
  504. o24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  505. o25.Name = "qCFrameWeldThingy"
  506. o25.Parent = o24
  507. o25.C1 = CFrame.new(-0.140956879, 9.65140629, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  508. o25.Part0 = o2
  509. o25.Part1 = o24
  510. o26.Name = "qRelativeCFrameWeldValue"
  511. o26.Parent = o24
  512. o26.Value = CFrame.new(-0.140956879, 9.65140629, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  513. o27.Parent = o1
  514. o27.BrickColor = BrickColor.new("Really black")
  515. o27.Position = Vector3.new(46.8207512, 1.61687088, 9.45395088)
  516. o27.CanCollide = false
  517. o27.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
  518. o27.CFrame = CFrame.new(46.8207512, 1.61687088, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  519. o27.BottomSurface = Enum.SurfaceType.Smooth
  520. o27.TopSurface = Enum.SurfaceType.Smooth
  521. o27.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  522. o27.Position = Vector3.new(46.8207512, 1.61687088, 9.45395088)
  523. o27.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  524. o28.Name = "qCFrameWeldThingy"
  525. o28.Parent = o27
  526. o28.C1 = CFrame.new(-0.140956879, 9.97477722, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  527. o28.Part0 = o2
  528. o28.Part1 = o27
  529. o29.Name = "qRelativeCFrameWeldValue"
  530. o29.Parent = o27
  531. o29.Value = CFrame.new(-0.140956879, 9.97477722, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  532. o30.Parent = o1
  533. o30.Material = Enum.Material.Granite
  534. o30.BrickColor = BrickColor.new("Really black")
  535. o30.Position = Vector3.new(46.8207512, 11.6165257, 7.33545208)
  536. o30.CanCollide = false
  537. o30.Size = Vector3.new(1.65831769, 2.48747659, 0.389704525)
  538. o30.CFrame = CFrame.new(46.8207512, 11.6165257, 7.33545208, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  539. o30.BottomSurface = Enum.SurfaceType.Smooth
  540. o30.TopSurface = Enum.SurfaceType.Smooth
  541. o30.Color = Color3.new(0, 0, 0)
  542. o30.Position = Vector3.new(46.8207512, 11.6165257, 7.33545208)
  543. o30.Color = Color3.new(0, 0, 0)
  544. o31.Name = "qCFrameWeldThingy"
  545. o31.Parent = o30
  546. o31.C1 = CFrame.new(-0.140956879, -0.0248775482, -0.120224953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  547. o31.Part0 = o2
  548. o31.Part1 = o30
  549. o32.Name = "qRelativeCFrameWeldValue"
  550. o32.Parent = o30
  551. o32.Value = CFrame.new(-0.140956879, -0.0248775482, -0.120224953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  552. o33.Name = "HitBox1"
  553. o33.Parent = o1
  554. o33.BrickColor = BrickColor.new("Really black")
  555. o33.Transparency = 1
  556. o33.Position = Vector3.new(46.6797943, 11.5916481, 11.7341356)
  557. o33.CanCollide = false
  558. o33.Size = Vector3.new(3.31663537, 2.63672447, 0.804284275)
  559. o33.CFrame = CFrame.new(46.6797943, 11.5916481, 11.7341356, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  560. o33.BottomSurface = Enum.SurfaceType.Smooth
  561. o33.TopSurface = Enum.SurfaceType.Smooth
  562. o33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  563. o33.Position = Vector3.new(46.6797943, 11.5916481, 11.7341356)
  564. o33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  565. o34.Name = "qCFrameWeldThingy"
  566. o34.Parent = o33
  567. o34.C1 = CFrame.new(0, 0, -4.5189085, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  568. o34.Part0 = o2
  569. o34.Part1 = o33
  570. o35.Name = "qRelativeCFrameWeldValue"
  571. o35.Parent = o33
  572. o35.Value = CFrame.new(0, 0, -4.5189085, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  573. o36.Parent = o1
  574. o36.Material = Enum.Material.Granite
  575. o36.BrickColor = BrickColor.new("Black")
  576. o36.Position = Vector3.new(46.8207512, 11.6165257, 7.33545208)
  577. o36.CanCollide = false
  578. o36.Size = Vector3.new(1.49248588, 2.32164478, 0.414579421)
  579. o36.CFrame = CFrame.new(46.8207512, 11.6165257, 7.33545208, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  580. o36.BottomSurface = Enum.SurfaceType.Smooth
  581. o36.TopSurface = Enum.SurfaceType.Smooth
  582. o36.Color = Color3.new(0.188235, 0.188235, 0.188235)
  583. o36.Position = Vector3.new(46.8207512, 11.6165257, 7.33545208)
  584. o36.Color = Color3.new(0.188235, 0.188235, 0.188235)
  585. o37.Name = "qCFrameWeldThingy"
  586. o37.Parent = o36
  587. o37.C1 = CFrame.new(-0.140956879, -0.0248775482, -0.120224953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  588. o37.Part0 = o2
  589. o37.Part1 = o36
  590. o38.Name = "qRelativeCFrameWeldValue"
  591. o38.Parent = o36
  592. o38.Value = CFrame.new(-0.140956879, -0.0248775482, -0.120224953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  593. o39.Parent = o1
  594. o39.Material = Enum.Material.Granite
  595. o39.BrickColor = BrickColor.new("Black")
  596. o39.Position = Vector3.new(46.8207512, 11.6165257, 11.5392885)
  597. o39.CanCollide = false
  598. o39.Size = Vector3.new(1.49248588, 2.32164478, 0.414579421)
  599. o39.CFrame = CFrame.new(46.8207512, 11.6165257, 11.5392885, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  600. o39.BottomSurface = Enum.SurfaceType.Smooth
  601. o39.TopSurface = Enum.SurfaceType.Smooth
  602. o39.Color = Color3.new(0.188235, 0.188235, 0.188235)
  603. o39.Position = Vector3.new(46.8207512, 11.6165257, 11.5392885)
  604. o39.Color = Color3.new(0.188235, 0.188235, 0.188235)
  605. o40.Name = "qCFrameWeldThingy"
  606. o40.Parent = o39
  607. o40.C1 = CFrame.new(-0.140956879, -0.0248775482, -4.32406139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  608. o40.Part0 = o2
  609. o40.Part1 = o39
  610. o41.Name = "qRelativeCFrameWeldValue"
  611. o41.Parent = o39
  612. o41.Value = CFrame.new(-0.140956879, -0.0248775482, -4.32406139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  613. o42.Parent = o1
  614. o42.BrickColor = BrickColor.new("Really black")
  615. o42.Position = Vector3.new(46.8207512, 1.01158428, 9.45395088)
  616. o42.CanCollide = false
  617. o42.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
  618. o42.CFrame = CFrame.new(46.8207512, 1.01158428, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  619. o42.BottomSurface = Enum.SurfaceType.Smooth
  620. o42.TopSurface = Enum.SurfaceType.Smooth
  621. o42.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  622. o42.Position = Vector3.new(46.8207512, 1.01158428, 9.45395088)
  623. o42.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  624. o43.Name = "qCFrameWeldThingy"
  625. o43.Parent = o42
  626. o43.C1 = CFrame.new(-0.140956879, 10.5800638, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  627. o43.Part0 = o2
  628. o43.Part1 = o42
  629. o44.Name = "qRelativeCFrameWeldValue"
  630. o44.Parent = o42
  631. o44.Value = CFrame.new(-0.140956879, 10.5800638, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  632. o45.Parent = o1
  633. o45.BrickColor = BrickColor.new("Really black")
  634. o45.Position = Vector3.new(46.8207512, 1.33495617, 9.45395088)
  635. o45.CanCollide = false
  636. o45.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
  637. o45.CFrame = CFrame.new(46.8207512, 1.33495617, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  638. o45.BottomSurface = Enum.SurfaceType.Smooth
  639. o45.TopSurface = Enum.SurfaceType.Smooth
  640. o45.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  641. o45.Position = Vector3.new(46.8207512, 1.33495617, 9.45395088)
  642. o45.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  643. o46.Name = "qCFrameWeldThingy"
  644. o46.Parent = o45
  645. o46.C1 = CFrame.new(-0.140956879, 10.2566919, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  646. o46.Part0 = o2
  647. o46.Part1 = o45
  648. o47.Name = "qRelativeCFrameWeldValue"
  649. o47.Parent = o45
  650. o47.Value = CFrame.new(-0.140956879, 10.2566919, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  651. o48.Name = "RAWeldP"
  652. o48.Parent = o1
  653. o48.Transparency = 1
  654. o48.Position = Vector3.new(46.9498253, 2.08000755, 8.63967896)
  655. o48.Rotation = Vector3.new(90, 0, -180)
  656. o48.CanCollide = false
  657. o48.Size = Vector3.new(1, 2, 1)
  658. o48.CFrame = CFrame.new(46.9498253, 2.08000755, 8.63967896, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  659. o48.BottomSurface = Enum.SurfaceType.Smooth
  660. o48.TopSurface = Enum.SurfaceType.Smooth
  661. o48.Position = Vector3.new(46.9498253, 2.08000755, 8.63967896)
  662. o48.Orientation = Vector3.new(90, 180, 0)
  663. o49.Name = "qCFrameWeldThingy"
  664. o49.Parent = o48
  665. o49.C1 = CFrame.new(0.270030975, 1.42445183, -9.51164055, -1, 0, -0, 0, 0, -1, 0, -1, -0)
  666. o49.Part0 = o2
  667. o49.Part1 = o48
  668. o50.Name = "qRelativeCFrameWeldValue"
  669. o50.Parent = o48
  670. o50.Value = CFrame.new(0.270030975, 1.42445183, -9.51164055, -1, 0, -0, 0, 0, -1, 0, -1, -0)
  671. o51.Name = "RAWeld"
  672. o51.Parent = o48
  673. o51.Part0 = o48
  674. o51.Part1 = RA
  675. o52.Parent = o1
  676. o52.Material = Enum.Material.Granite
  677. o52.BrickColor = BrickColor.new("Really black")
  678. o52.Position = Vector3.new(46.8207512, 11.6165257, 11.5392885)
  679. o52.CanCollide = false
  680. o52.Size = Vector3.new(1.65831769, 2.48747659, 0.389704525)
  681. o52.CFrame = CFrame.new(46.8207512, 11.6165257, 11.5392885, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  682. o52.BottomSurface = Enum.SurfaceType.Smooth
  683. o52.TopSurface = Enum.SurfaceType.Smooth
  684. o52.Color = Color3.new(0, 0, 0)
  685. o52.Position = Vector3.new(46.8207512, 11.6165257, 11.5392885)
  686. o52.Color = Color3.new(0, 0, 0)
  687. o53.Name = "qCFrameWeldThingy"
  688. o53.Parent = o52
  689. o53.C1 = CFrame.new(-0.140956879, -0.0248775482, -4.32406139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  690. o53.Part0 = o2
  691. o53.Part1 = o52
  692. o54.Name = "qRelativeCFrameWeldValue"
  693. o54.Parent = o52
  694. o54.Value = CFrame.new(-0.140956879, -0.0248775482, -4.32406139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  695.  
  696. --Attacks
  697. local attacks = 1
  698. local canwave = true
  699. local candamage = true
  700. local candamage2 = true
  701. function attack1()
  702. attacks = 2
  703. attack = true
  704. canwave = true
  705. for i = 1,20 do
  706. wait(0.01)
  707. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  708. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  709. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(-35),math.rad(0),math.rad(0)),.1)
  710. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35),math.rad(0),math.rad(0)),.1)
  711. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(150),math.rad(0),math.rad(0)),.1)
  712. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  713.  
  714. end
  715. for i = 1,20 do
  716. wait(0.01)
  717. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  718. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  719. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(35),math.rad(0),math.rad(0)),.1)
  720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  721. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  722. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  723. end
  724. o33.Touched:Connect(function(tch)
  725. if tch.Parent.ClassName == "Model" and candamage == true and tch.Parent.Name ~= plr.Name then
  726. candamage = false
  727. tch.Parent.Humanoid.Health = 0
  728. elseif tch.Parent.Humanoid == nil then
  729. print("baiting")
  730. end
  731. end)
  732.  
  733. attack = false
  734. end
  735.  
  736. function attack2()
  737. attack = true
  738.  
  739. for i = 1,20 do
  740. wait(0.01)
  741. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  742. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  743. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.1)
  744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(50)),.1)
  745. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(120),math.rad(90),math.rad(120)),.1)
  746. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  747. end
  748. for i = 1,40 do
  749. wait(0.01)
  750. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  751. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  752. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(100)),.1)
  753. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-100)),.1)
  754. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(90),math.rad(-100),math.rad(0)),.1)
  755. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  756.  
  757. end
  758. o33.Touched:Connect(function(tch)
  759. if tch.Parent.ClassName == "Model" and candamage == true and tch.Parent.Name ~= plr.Name then
  760. local explosion = Instance.new("Explosion", tch.Parent.Torso)
  761. explosion.BlastPressure = 500
  762. explosion.Position = tch.Parent.Torso.Position
  763. explosion.BlastRadius = 1
  764. explosion.DestroyJointRadiusPercent = 1
  765.  
  766. candamage2 = false
  767. tch.Parent.Humanoid.Health = 0
  768. elseif tch.Parent.Humanoid == nil then
  769. print("baiting")
  770. end
  771. end)
  772. attack = false
  773. end
  774.  
  775. --keysconfig
  776.  
  777. mouse.Button1Down:Connect(function()
  778. if attacks == 1 then
  779. attack1()
  780. attacks = 2
  781. candamage = true
  782. elseif attacks == 2 then
  783. attack2()
  784. attacks = 1
  785. candamage2 = true
  786. end
  787. end)
  788.  
  789. --Animations
  790.  
  791.  
  792. local equipped = false
  793. local idle = 0
  794. local change = 1
  795. local val = 0
  796. local toim = 0
  797. local idleanim = 0.4
  798. ANIMATE.Parent = nil
  799. hum.WalkSpeed = 50
  800. hum.MaxHealth = "inf"
  801. hum.Health = "inf"
  802. hum.Animator.Parent = nil
  803.  
  804.  
  805.  
  806. while true do
  807. wait(0.001)
  808. sine = sine + change
  809. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  810. local velderp = root.Velocity.y
  811. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  812. if equipped == true or equipped == false then
  813. if attack == false then
  814. idle = idle + 1
  815. else
  816. idle = 0
  817. end
  818. if 1 < root.Velocity.y and hitfloor == nil and attack == false then
  819. Anim = "Jump"
  820. change = 1
  821. RootJoint.C0 = Clerp(RootJoint.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  822. tors.Neck.C0 = Clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  823. RW.C0 = Clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3)
  824. LW.C0 = Clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3)
  825. LH.C0=Clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  826. RH.C0=Clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  827. elseif -1 > root.Velocity.y and hitfloor == nil and attack == false then
  828. Anim = "FaLL"
  829. change = 1
  830. RootJoint.C0 = Clerp(RootJoint.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  831. tors.Neck.C0 = Clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  832. RW.C0 = Clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(90)),0.3)
  833. LW.C0 = Clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-90)),0.3)
  834. LH.C0 = Clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  835. RH.C0 = Clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  836.  
  837. elseif torvel < 1 and hitfloor ~= nil and attack == false then
  838. Anim = "Idle"
  839. change = 1
  840. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  841. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  842. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  843. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 + 2 * math.rad(sine / 5)),math.rad(0),math.rad(0)),.1)
  844. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 30) ,0)*angles(math.rad(120),math.rad(10),math.rad(0)),.1)
  845. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 30) ,0)*angles(math.rad(0),math.rad(0),math.rad(25)),.1)
  846.  
  847. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil and attack == false then
  848. Anim = "Walk"
  849. change = 2.6
  850.  
  851. elseif torvel >= 25 and hitfloor ~= nil and attack == false then
  852. Anim = "Sprint"
  853. change = 3
  854. RootJoint.C0 = Clerp(RootJoint.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  855. tors.Neck.C0 = Clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  856. RH.C0 = Clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * 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)
  857. LH.C0 = Clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * 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)
  858. RW.C0 = Clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - RA.RotVelocity.Y / 75), 0.15)
  859. LW.C0 = Clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + LA.RotVelocity.Y / 75), 0.15)
  860. end
  861. end
  862.  
  863.  
  864.  
  865. if 0 < #Effects then
  866. for e = 1, #Effects do
  867. if Effects[e] ~= nil then
  868. local Thing = Effects[e]
  869. if Thing ~= nil then
  870. local Part = Thing[1]
  871. local Mode = Thing[2]
  872. local DeLAy = Thing[3]
  873. local IncX = Thing[4]
  874. local IncY = Thing[5]
  875. local IncZ = Thing[6]
  876. if 1 >= Thing[1].TRAnsparency then
  877. if Thing[2] == "Block1" then
  878. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.RAndom(-50, 50), math.RAndom(-50, 50), math.RAndom(-50, 50))
  879. local Mesh = Thing[1].Mesh
  880. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  881. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  882. elseif Thing[2] == "Block2" then
  883. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  884. local Mesh = Thing[7]
  885. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  886. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  887. elseif Thing[2] == "Block3" then
  888. 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)
  889. local Mesh = Thing[7]
  890. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  891. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  892. elseif Thing[2] == "Cylinder" then
  893. local Mesh = Thing[1].Mesh
  894. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  895. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  896. elseif Thing[2] == "Blood" then
  897. local Mesh = Thing[7]
  898. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  899. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  900. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  901. elseif Thing[2] == "Elec" then
  902. local Mesh = Thing[1].Mesh
  903. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  904. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  905. elseif Thing[2] == "Disappear" then
  906. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  907. elseif Thing[2] == "Shatter" then
  908. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  909. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  910. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  911. Thing[6] = Thing[6] + Thing[5]
  912. end
  913. else
  914. Part.Parent = nil
  915. table.remove(Effects, e)
  916. end
  917. end
  918. end
  919. end
  920. end
  921. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement