Advertisement
artucox7

Artuco's Ban Hammer Fe

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