Gokussjg

Untitled

Nov 11th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.44 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. LeftArm=Character["Left Arm"]
  9. LeftLeg=Character["Left Leg"]
  10. RightArm=Character["Right Arm"]
  11. RightLeg=Character["Right Leg"]
  12. LS=Torso["Left Shoulder"]
  13. LH=Torso["Left Hip"]
  14. RS=Torso["Right Shoulder"]
  15. RH=Torso["Right Hip"]
  16. Face = Head.face
  17. Neck=Torso.Neck
  18. it=Instance.new
  19. attacktype=1
  20. vt=Vector3.new
  21. cf=CFrame.new
  22. euler=CFrame.fromEulerAnglesXYZ
  23. angles=CFrame.Angles
  24. cloaked=false
  25. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  28. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  29. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RootPart=Character.HumanoidRootPart
  32. RootJoint=RootPart.RootJoint
  33. RootCF=euler(-1.57,0,3.14)
  34. attack = false
  35. attackdebounce = false
  36. deb=false
  37. equipped=true
  38. hand=false
  39. MMouse=nil
  40. combo=0
  41. mana=0
  42. trispeed=.2
  43. attackmode='none'
  44. local idle=0
  45. local Anim="Idle"
  46. local Effects={}
  47. Camera = workspace.CurrentCamera
  48. local m = Instance.new("Model",Character)
  49. m.Name = "WeaponModel"
  50. local RHCF = CFrame.fromEulerAnglesXYZ(0,1.6,0)
  51. local LHCF = CFrame.fromEulerAnglesXYZ(0,-1.6,0)
  52.  
  53. Humanoid.WalkSpeed = 30
  54. Humanoid.Animator:Destroy()
  55. mouse=Player:GetMouse()
  56. --save shoulders
  57. RSH, LSH=nil, nil
  58. --welds
  59. RW, LW=Instance.new("Motor6D"), Instance.new("Motor6D")
  60. RW.Name="RS" LW.Name="LS"
  61. LH=Torso["Left Hip"]
  62. RH=Torso["Right Hip"]
  63. TorsoColor=Torso.BrickColor
  64. player=Player
  65. ch=Character
  66. RSH=ch.Torso["Right Shoulder"]
  67. LSH=ch.Torso["Left Shoulder"]
  68. --
  69. RSH.Parent=nil
  70. LSH.Parent=nil
  71. --
  72. RW.Part0=ch.Torso
  73. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  74. RW.C1=cf(0, 0.5, 0)
  75. RW.Part1=ch["Right Arm"]
  76. RW.Parent=ch.Torso
  77. --
  78. LW.Part0=ch.Torso
  79. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  80. LW.C1=cf(0, 0.5, 0)
  81. LW.Part1=ch["Left Arm"]
  82. LW.Parent=ch.Torso
  83.  
  84.  
  85. local RbxUtility = LoadLibrary("RbxUtility")
  86. local Create = RbxUtility.Create
  87.  
  88. function RemoveOutlines(part)
  89. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  90. end
  91.  
  92. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  93. local Part = Create("Part"){
  94. formFactor = FormFactor,
  95. Parent = Parent,
  96. Reflectance = Reflectance,
  97. Transparency = Transparency,
  98. CanCollide = false,
  99. Locked = true,
  100. BrickColor = BrickColor.new(tostring(BColor)),
  101. Name = Name,
  102. Size = Size,
  103. Material = Material,
  104. }
  105. RemoveOutlines(Part)
  106. return Part
  107. end
  108.  
  109. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  110. local Msh = Create(Mesh){
  111. Parent = Part,
  112. Offset = OffSet,
  113. Scale = Scale,
  114. }
  115. if Mesh == "SpecialMesh" then
  116. Msh.MeshType = MeshType
  117. Msh.MeshId = MeshId
  118. end
  119. return Msh
  120. end
  121.  
  122. function CreateWeld(Parent, Part0, Part1, C0, C1)
  123. local Weld = Create("Weld"){
  124. Parent = Parent,
  125. Part0 = Part0,
  126. Part1 = Part1,
  127. C0 = C0,
  128. C1 = C1,
  129. }
  130. return Weld
  131. end
  132.  
  133. function CreateSound(id,par,vol,pit)
  134. coroutine.resume(coroutine.create(function()
  135. local sou = Instance.new("Sound",par or workspace)
  136. sou.Volume=vol
  137. sou.Pitch=pit or 1
  138. sou.SoundId=id
  139. wait()
  140. sou:play()
  141. game:GetService("Debris"):AddItem(sou,6)
  142. end))
  143. end
  144.  
  145. function clerp(a,b,t)
  146. return a:lerp(b,t)
  147. end
  148.  
  149. function makegui(ador,text)
  150. local a=math.random(-10,10)/100
  151. local bg=Instance.new('BillboardGui',m)
  152. bg.Adornee=ador
  153. bg.Size=UDim2.new(1,0,1,0)
  154. bg.StudsOffset=Vector3.new(0,0,0)
  155. bg.AlwaysOnTop=false
  156. local tl=Instance.new('TextLabel',bg)
  157. tl.BackgroundTransparency=1
  158. tl.Size=UDim2.new(1,0,1,0)
  159. tl.Text=text
  160. tl.Font='SourceSansBold'
  161. tl.FontSize='Size42'
  162. tl.TextColor3=Color3.new(255,255,255)
  163. tl.TextStrokeTransparency=0
  164. tl.TextScaled=true
  165. tl.TextWrapped=true
  166. coroutine.wrap(function()
  167. for i=1,50 do
  168. wait()
  169. bg.StudsOffset=bg.StudsOffset+Vector3.new(a,.1,a)
  170. end
  171. wait(1)
  172. for i=1,10 do
  173. wait()
  174. tl.TextTransparency=tl.TextTransparency+.1
  175. end
  176. end)()
  177. end
  178.  
  179. function damage(hit,mind,maxd,knock,type,prop)
  180. --[[
  181. to apply it to a player directly, make the first arg go to the players torso
  182. 1 - normal type(damage and knockback)
  183. 2 - drain type(damage no knockback)
  184. 3 - lifesteal(arbsorbs hp)
  185. 4 - heal(heals target)
  186. ]]
  187. if hit.Parent==nil then
  188. return
  189. end
  190. local h=hit.Parent:FindFirstChild("Humanoid")
  191. for i,v in pairs(hit.Parent:children()) do
  192. if v:IsA("Humanoid") then
  193. h=v
  194. end
  195. end
  196. if hit.Parent.Parent:FindFirstChild('Torso')~=nil then
  197. h=hit.Parent.Parent:FindFirstChild('Humanoid')
  198. end
  199. if hit.Parent:IsA('Hat') then
  200. hit=hit.Parent.Parent:findFirstChild('Head')
  201. end
  202. local D=math.random(mind,maxd)
  203. --h.Health=h.Health-D
  204. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  205. if type=="Normal Damage" then
  206. h.Health=h.Health-D
  207. makegui(h.Parent.Torso,tostring(D))
  208. CreateSound("http://www.roblox.com/asset/?id=169462037",hit,1,math.random(150,200)/100)
  209. local vp=Instance.new('BodyVelocity')
  210. vp.P=500
  211. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  212. vp.velocity=prop.CFrame.lookVector*knock+prop.Velocity/1.05
  213. if knock>0 then
  214. vp.Parent=hit.Parent.Torso
  215. end
  216. game:GetService("Debris"):AddItem(vp,.5)
  217. elseif type=="Drain Damage" then
  218. CreateSound("http://www.roblox.com/asset/?id=169462037",hit,1,math.random(150,200)/100)
  219. h.Health=h.Health-D
  220. makegui(h.Parent.Torso,tostring(D))
  221. elseif type=="Lifestealing Damage" then
  222. h.Health=h.Health-D
  223. Character.Humanoid.Health=Character.Humanoid.Health+D/2
  224. CreateSound("http://www.roblox.com/asset/?id=206083232",hit,1,1.5)
  225. makegui(h.Parent.Torso,tostring(D))
  226. elseif type=="Healing" then
  227. h.Health=h.Health+D
  228. CreateSound("http://www.roblox.com/asset/?id=186883084",hit,1,1)
  229. makegui(h.Parent.Torso,tostring(D))
  230. end
  231. end
  232. end
  233.  
  234. local function GetClosest(obj,MaxDistance)
  235. local Last,Lastx = MaxDistance +1
  236. for i,v in pairs(workspace:GetChildren())do
  237. if v:IsA("Model")and v ~= Character and v:findFirstChild("Humanoid")and v:findFirstChild("Torso")and v:findFirstChild("Humanoid").Health > 0 then
  238. local t = v.Torso
  239. local dist = (t.Position - obj.Position).magnitude
  240. if dist <= MaxDistance then
  241. if dist < Last then
  242. Last = dist
  243. Lastx = v
  244. end end end end
  245. return Lastx
  246. end
  247.  
  248. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  249. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  250. end
  251.  
  252. function trail(color,part)
  253. trailling=true
  254. local lastPoint = part.Position
  255. coroutine.resume(coroutine.create(function()
  256. while trailling do
  257. wait()
  258. local mag = (lastPoint - part.Position).magnitude
  259. local p=Instance.new('Part',m)
  260. p.Anchored=true
  261. p.CanCollide=false
  262. p.Transparency=.2
  263. p.BrickColor=BrickColor.new(color)
  264. p.Material='Neon'
  265. p.FormFactor='Custom'
  266. p.Size=Vector3.new(1,1,1)
  267. p.CFrame = CFrame.new(lastPoint, part.Position) * CFrame.new(0, 0, -mag/2)
  268. local mesh=Instance.new("BlockMesh",p)
  269. mesh.Scale=Vector3.new(.1,.1,mag+.2)
  270. lastPoint = part.Position
  271. coroutine.wrap(function()
  272. for x=1,10 do
  273. wait()
  274. mesh.Scale=mesh.Scale-Vector3.new(.01,.01,0)
  275. end
  276. p:remove()
  277. end)()
  278. end
  279. end))
  280. end
  281.  
  282. Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Dark stone grey","Handle",Vector3.new(2.8874979, 0.553124726, 0.200000003))
  283. Handleweld=CreateWeld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0374832153, 1.11559677, -0.0300197601, -3.7658765e-013, 0, -0.999997616, 9.8749676e-013, 0.999997497, 0, 1, -9.87811937e-013, -3.7658765e-013))
  284. CreateMesh("BlockMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.921874583))
  285. FakeHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Dark stone grey","FakeHandle",Vector3.new(2.08749771, 0.553124726, 0.200000003))
  286. FakeHandleweld=CreateWeld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-005, 2.62260437e-006, -3.81469727e-006, 0.999990463, -7.43754529e-025, -1.78893358e-018, -7.43754726e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  287. CreateMesh("BlockMesh",FakeHandle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.921874583))
  288. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(3.68749809, 0.553124726, 0.200000003))
  289. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400016785, -2.62260437e-006, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  290. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.921874583))
  291. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  292. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.5640564, 2.38418579e-007, 0, 0.999990463, -1.85938657e-024, -4.49943902e-018, 3.71877412e-025, 0.999990463, -1.56450373e-015, 9.21571847e-019, 3.12900747e-016, 1))
  293. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 1, 0.921874583))
  294. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  295. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.19529533, -2.62260437e-006, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  296. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 1, 0.921874583))
  297. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  298. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.01091957, -2.62260437e-006, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  299. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 0.876666665, 0.737499654))
  300. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  301. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.82654381, -2.62260437e-006, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  302. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 1, 0.921874583))
  303. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  304. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.64216995, -2.62260437e-006, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  305. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 0.876666665, 0.737499654))
  306. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  307. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.3796711, -3.57627869e-006, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  308. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 0.876666665, 0.737499654))
  309. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.737499714, 0.553124726, 0.200000003))
  310. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.1812191, -2.62260437e-006, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  311. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.921874583))
  312. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(2.94999838, 0.200000003, 0.202812403))
  313. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.40001297, -1.31130219e-005, 0, 0.999987483, -3.71994139e-025, 3.76584723e-013, -3.64036234e-025, 0.999987483, -1.00893556e-012, -3.76586755e-013, 1.00767973e-012, 1))
  314. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.921874583, 1))
  315. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.737499595, 0.553124726, 0.200000003))
  316. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.35001373, -2.62260437e-006, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  317. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.921874583))
  318. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.368749827))
  319. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.184376717, 2.42810059, -5.96035008e-008, 1.25160299e-015, -1, 9.17634938e-023, 0.999992847, 3.12900747e-016, 0.999992847, -1.82727023e-023, -5.96039271e-008))
  320. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 0.921874642, 1))
  321. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.368749857, 0.737499714))
  322. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.0921888351, 5.3155632, 2.22954721e-008, -5.9603785e-008, -1, -7.07253012e-009, -0.999985695, 5.96046377e-008, -0.999985695, 7.07252878e-009, -2.22957919e-008))
  323. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 1, 1))
  324. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.737499714, 0.368749827, 0.200000003))
  325. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.61249161, 0.0921854973, 0, 0.999992847, -1.4875129e-024, -3.60497222e-018, 3.71878349e-025, 0.999992847, -1.25160299e-015, 9.21571847e-019, 3.12900747e-016, 1))
  326. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.921874583))
  327. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.368749827))
  328. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.18437624, -2.79685974, 5.96040763e-008, -6.25801494e-016, 1, -7.43754529e-025, 0.999990463, -6.25801494e-016, -0.999990463, -3.65538643e-023, 5.96046448e-008))
  329. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 0.921874642, 1))
  330. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.202812403))
  331. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.96718216, -1.40666962e-005, 0, 0.999987125, -3.71994016e-025, 3.76584614e-013, -3.64036234e-025, 0.999987483, -1.00893556e-012, -3.7658662e-013, 1.0076794e-012, 0.999999642))
  332. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 2.21249914, 1))
  333. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.202812403))
  334. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.16716385, -1.40666962e-005, 0, 0.999987006, -3.71993967e-025, 3.7658456e-013, -3.64036234e-025, 0.999987483, -1.00893556e-012, -3.76586566e-013, 1.00767929e-012, 0.999999523))
  335. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 2.21249914, 1))
  336. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(1.29062438, 0.368749827, 0.200000003))
  337. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.3015213, -0.0921912193, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  338. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.921874583))
  339. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.543905973, 1.29062438))
  340. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.00460743904, 5.59212303, 2.22954721e-008, -5.9603785e-008, -1, -7.07253012e-009, -0.999985695, 5.96046377e-008, -0.999985695, 7.07252878e-009, -2.22957919e-008))
  341. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300531089, 1, 1))
  342. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(1.29062438, 0.200000003, 0.200000003))
  343. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.30152702, 0.184371233, 0, 0.999991655, -7.43755219e-025, -1.35525272e-018, -7.43755022e-025, 0.999991655, -6.26994116e-016, -1.78893358e-018, -6.25801494e-016, 1))
  344. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.921874583, 0.294999897))
  345. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  346. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.368732214, 4.85466194, 2.2294989e-008, -5.96025203e-008, -1, -7.07257142e-009, -0.999991655, 5.96030176e-008, -0.999991655, 7.07257009e-009, -2.22951755e-008))
  347. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300531089, 0.921874583, 0.921874583))
  348. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  349. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.368737578, 4.67025185, 2.2295163e-008, -5.96029821e-008, -1, -7.07252479e-009, -0.999985099, 5.96038703e-008, -0.999985099, 7.07252346e-009, -2.2295497e-008))
  350. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300531089, 0.921874583, 0.921874583))
  351. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  352. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.36872232, 3.93280792, 2.22949676e-008, -5.96024705e-008, -1, -7.07252568e-009, -0.999985099, 5.96033587e-008, -0.999985099, 7.07252434e-009, -2.22953016e-008))
  353. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300531089, 0.921874583, 0.921874583))
  354. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  355. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.368722677, 4.11721611, 2.22950032e-008, -5.96025629e-008, -1, -7.07257186e-009, -0.999991655, 5.96030603e-008, -0.999991655, 7.07257053e-009, -2.22951897e-008))
  356. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300531089, 0.921874583, 0.921874583))
  357. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  358. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.368732214, 4.48592758, 2.22950742e-008, -5.96027476e-008, -1, -7.07257142e-009, -0.999991655, 5.9603245e-008, -0.999991655, 7.07257009e-009, -2.22952607e-008))
  359. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300531089, 0.921874583, 0.921874583))
  360. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.368749827))
  361. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90734863e-006, -0.184342265, 5.37805176, -5.95993832e-008, -1.49017119e-008, -1, -3.55258387e-015, 0.999992847, -1.49018184e-008, 0.999992847, 2.66444441e-015, -5.95998095e-008))
  362. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 0.921874642, 1))
  363. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  364. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.368727446, 4.30156708, 2.22950387e-008, -5.96026553e-008, -1, -7.07257186e-009, -0.999991655, 5.96031526e-008, -0.999991655, 7.07257053e-009, -2.22952252e-008))
  365. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300531089, 0.921874583, 0.921874583))
  366. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  367. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.368721366, 3.7484436, 2.22949321e-008, -5.96023781e-008, -1, -7.07252612e-009, -0.999985099, 5.96032663e-008, -0.999985099, 7.07252479e-009, -2.22952661e-008))
  368. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300531089, 0.921874583, 0.921874583))
  369. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  370. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.17966843, -1.50203705e-005, 0, 0.999992847, -3.71996136e-025, 3.76586755e-013, -3.63978819e-025, 0.999992847, -1.00909862e-012, -3.76586755e-013, 1.00815276e-012, 1))
  371. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 0.876666665, 0.737499654))
  372. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.912655771, 0.737499714))
  373. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.188973784, 5.31552696, 2.22946976e-008, -5.96017244e-008, -1, -7.072535e-009, -0.999986887, 5.9602506e-008, -0.999986887, 7.07253367e-009, -2.22949907e-008))
  374. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300531089, 1, 1))
  375. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  376. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81095505, 3.09944153e-006, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754578e-025, 0.999990463, -9.41195906e-016, -1.78893358e-018, -3.10407082e-016, 1))
  377. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 0.876666665, 0.737499654))
  378. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  379. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.54840088, 1.16825104e-005, -1.90734863e-006, 0.999992847, 3.73773774e-020, 2.85642083e-012, -1.22503937e-019, 0.999992847, 2.9801619e-008, -2.85640305e-012, -2.98014058e-008, 1))
  380. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 0.876666665, 0.737499654))
  381. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  382. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.99529266, -1.50203705e-005, 0, 0.999992847, -3.71996136e-025, 3.76586755e-013, -3.63978819e-025, 0.999992847, -1.00909862e-012, -3.76586755e-013, 1.00815276e-012, 1))
  383. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 1, 0.921874583))
  384. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.553124726, 0.200000003))
  385. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.36404037, -1.50203705e-005, 0, 0.999992847, -3.71996136e-025, 3.76586755e-013, -3.63978819e-025, 0.999992847, -1.00909862e-012, -3.76586755e-013, 1.00815276e-012, 1))
  386. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 1, 0.921874583))
  387. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.553124726, 0.553124726, 0.200000003))
  388. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.9171524, 1.16825104e-005, -1.90734863e-006, 0.999992847, 2.14118859e-024, 2.87061802e-012, -4.27760783e-020, 0.999992847, 1.49003041e-008, -2.87060024e-012, -1.49001993e-008, 1))
  389. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.921874583))
  390. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.368749827, 0.368749827))
  391. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.0921826363, 5.37806702, -2.24552696e-008, 1.23675636e-006, 1, 6.84464596e-010, -0.999992847, 1.23676523e-006, 0.999992847, 6.84492352e-010, 2.24554295e-008))
  392. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.921874583, 1, 1))
  393. Hitbox=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Dark stone grey","Hitbox",Vector3.new(3.89062428, 0.968749881, 0.200000003))
  394. Hitboxweld=CreateWeld(m,FakeHandle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.40151978, 0.207807541, 0, 0.999990463, -7.43754726e-025, -1.78893358e-018, -7.43754529e-025, 0.999990463, -6.25801494e-016, -1.78893358e-018, -6.25801494e-016, 1))
  395. CreateMesh("BlockMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.921874583))
  396. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.368749827, 0.553124726, 0.200000003))
  397. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.62808228, -7.15255737e-007, 0, 0.999990463, -1.85938657e-024, -4.49943902e-018, 3.71877412e-025, 0.999990463, -1.56450373e-015, 9.21571847e-019, 3.12900747e-016, 1))
  398. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.876666665, 0.737499654))
  399.  
  400. function attackone()
  401. attack = true
  402. for i = 0,1,0.2 do
  403. wait()
  404. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  405. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  406. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  407. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)*angles(math.rad(0),math.rad(-40),math.rad(-50)),.3)
  408. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*RHCF*angles(math.rad(-5),math.rad(40),math.rad(0)),.3)
  409. LH.C0=clerp(LH.C0,cf(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(40),math.rad(0)),.3)
  410. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(0),math.rad(0),7*i),.7)
  411. end
  412. for i = 0,1,0.07 do
  413. wait()
  414. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,.1)*angles(math.rad(0),math.rad(0),math.rad(70)),.4)
  415. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-70)),.4)
  416. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)*angles(math.rad(0),math.rad(20),math.rad(90)),.4)
  417. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.2)*angles(math.rad(0),math.rad(50),math.rad(-80)),.4)
  418. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*RHCF*angles(math.rad(-5),math.rad(-40),math.rad(-40)),.4)
  419. LH.C0=clerp(LH.C0,cf(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(-40),math.rad(40)),.4)
  420. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  421. Torso.Velocity=Head.CFrame.lookVector*100
  422. end
  423. Humanoid.JumpPower = 70
  424. Humanoid.Jump = true
  425. RootPart.Velocity=RootPart.CFrame.lookVector*-100
  426. for i = 0,1,0.1 do
  427. wait()
  428. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),5*i),.4)
  429. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-50)),.4)
  430. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  431. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.4)
  432. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*RHCF*angles(math.rad(-5),math.rad(0),math.rad(-20)),.4)
  433. LH.C0=clerp(LH.C0,cf(-1,-.8,.3)*LHCF*angles(math.rad(-5),math.rad(0),math.rad(30)),.4)
  434. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(20),math.rad(0),8*i),.4)
  435. end
  436. attack = false
  437. end
  438.  
  439. function attacktwo()
  440. attack = true
  441. for i = 0,1,0.1 do
  442. wait()
  443. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  444. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  445. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  446. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)*angles(math.rad(0),math.rad(-40),math.rad(-50)),.3)
  447. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*RHCF*angles(math.rad(-5),math.rad(40),math.rad(0)),.3)
  448. LH.C0=clerp(LH.C0,cf(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(40),math.rad(0)),.3)
  449. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(80),math.rad(0),10*i),.4)
  450. end
  451. for i = 0,1,0.3 do
  452. wait()
  453. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  454. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  455. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.7)*angles(math.rad(130),math.rad(0),math.rad(-50)),.4)
  456. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.7)*angles(math.rad(130),math.rad(0),math.rad(50)),.4)
  457. RH.C0=clerp(RH.C0,cf(1,-1,-0)*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  458. LH.C0=clerp(LH.C0,cf(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(0),math.rad(50)),.4)
  459. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.4)
  460. end
  461. Humanoid.JumpPower = 70
  462. Humanoid.Jump = true
  463. RootPart.Velocity=RootPart.CFrame.lookVector*130
  464. for i = 1,2 do
  465. for i = 0,1,0.1 do
  466. wait()
  467. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(6*i,math.rad(0),math.rad(0)),.5)
  468. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  469. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.7)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  470. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.7)*angles(math.rad(30),math.rad(0),math.rad(50)),.3)
  471. RH.C0=clerp(RH.C0,cf(1,-1,0)*RHCF*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3)
  472. LH.C0=clerp(LH.C0,cf(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(0),math.rad(50)),.3)
  473. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.4)
  474. end
  475. end
  476. attack = false
  477. end
  478.  
  479. function attackthree()
  480. attack = true
  481. for i = 0,1,0.1 do
  482. wait()
  483. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.8)*angles(math.rad(50),math.rad(0),math.rad(-70)),.4)
  484. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(-20),math.rad(70)),.4)
  485. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)*angles(math.rad(0),math.rad(0),math.rad(70)),.4)
  486. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)*angles(math.rad(0),math.rad(-20),math.rad(-60)),.4)
  487. RH.C0=clerp(RH.C0,cf(1,-1,-.5)*RHCF*angles(math.rad(-5),math.rad(40),math.rad(30)),.4)
  488. LH.C0=clerp(LH.C0,cf(-1,0,0)*LHCF*angles(math.rad(-5),math.rad(40),math.rad(-50)),.4)
  489. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(40),math.rad(0),-10*i),.4)
  490. end
  491. Humanoid.JumpPower = 80
  492. Humanoid.Jump = true
  493. for i = 0,1,0.1 do
  494. wait()
  495. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  496. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  497. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.7)*angles(math.rad(130),math.rad(0),math.rad(-50)),.3)
  498. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.7)*angles(math.rad(130),math.rad(0),math.rad(50)),.3)
  499. RH.C0=clerp(RH.C0,cf(1,-.8,-.5)*RHCF*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3)
  500. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*LHCF*angles(math.rad(-5),math.rad(0),math.rad(30)),.3)
  501. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(-30),math.rad(30),-10*i),.7)
  502. end
  503. RootPart.Velocity=RootPart.CFrame.lookVector*200
  504. for i = 1,2 do
  505. for i = 0,1,0.1 do
  506. wait()
  507. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(120),math.rad(0),10*i),.65)
  508. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  509. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.7)*angles(math.rad(110),math.rad(0),math.rad(-50)),.3)
  510. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.7)*angles(math.rad(110),math.rad(0),math.rad(50)),.3)
  511. RH.C0=clerp(RH.C0,cf(1,-1,-0)*RHCF*angles(math.rad(-5),math.rad(0),math.rad(-20)),.3)
  512. LH.C0=clerp(LH.C0,cf(-1,-1,-.5)*LHCF*angles(math.rad(-5),math.rad(0),math.rad(20)),.3)
  513. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.4)
  514. end
  515. end
  516. attack = false
  517. end
  518.  
  519. mouse.Button1Down:connect(function()
  520. if attack == false and attacktype == 1 then
  521. attacktype = 2
  522. attackone()
  523. elseif attack == false and attacktype == 2 then
  524. attacktype = 3
  525. attacktwo()
  526. elseif attack == false and attacktype == 3 then
  527. attacktype = 1
  528. attackthree()
  529. end
  530. end)
  531.  
  532. mouse.KeyDown:connect(function(k)
  533. k=k:lower()
  534. if attack == false and k == '' then
  535.  
  536. end
  537. end)
  538.  
  539.  
  540. local sine = 0
  541. local change = 1
  542. local val = 0
  543.  
  544. while true do
  545. wait()
  546. sine = sine + change
  547. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  548. local velderp=RootPart.Velocity.y
  549. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  550. if equipped==true or equipped==false then
  551. if attack==false then
  552. idle=idle+1
  553. else
  554. idle=0
  555. end
  556. if idle>=500 then
  557. if attack==false then
  558. end
  559. end
  560. if RootPart.Velocity.y > 1 and hitfloor==nil then
  561. Anim="Jump"
  562. if attack==false then
  563. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  564. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  565. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)*angles(math.rad(-10),math.rad(0),math.rad(5)),.3)
  566. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)*angles(math.rad(-10),math.rad(0),math.rad(-5)),.3)
  567. RH.C0=clerp(RH.C0,cf(1,-.8,-.3)*RHCF*angles(math.rad(-3),math.rad(0),math.rad(-20)),.3)
  568. LH.C0=clerp(LH.C0,cf(-1,-1,0)*LHCF*angles(math.rad(3),math.rad(0),math.rad(20)),.3)
  569. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  570. end
  571. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  572. Anim="Fall"
  573. if attack==false then
  574. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-1,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  575. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  576. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.3)
  577. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.3)
  578. RH.C0=clerp(RH.C0,cf(1,-.8,-.5)*RHCF*angles(math.rad(-3),math.rad(0),math.rad(10)),.3)
  579. LH.C0=clerp(LH.C0,cf(-1,-1,0)*LHCF*angles(math.rad(-3),math.rad(0),math.rad(10)),.3)
  580. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(0),math.rad(0),math.rad(-55)),.3)
  581. end
  582. elseif torvel<1 and hitfloor~=nil then
  583. Anim="Idle"
  584. if attack==false then
  585. change = 1
  586. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1+0.1*math.cos(sine/25),-0.1+0.1*math.cos(sine/25))*angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
  587. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(-4*math.cos(sine/25)),math.rad(-4*math.cos(sine/25)),math.rad(40)),.3)
  588. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)*angles(math.rad(40-1*math.cos(sine/25)),math.rad(0),math.rad(20-1*math.cos(sine/25))),.3)
  589. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0)*angles(math.rad(10*math.cos(sine/25)),math.rad(0),math.rad(-10+1*math.cos(sine/25))),.3)
  590. RH.C0=clerp(RH.C0,cf(1,-.9-0.1*math.cos(sine/25),-.3)*RHCF*angles(math.rad(-3),math.rad(40),math.rad(-1+1*math.cos(sine/25))),.3)
  591. LH.C0=clerp(LH.C0,cf(-1,-.8-0.1*math.cos(sine/25),0)*LHCF*angles(math.rad(-5),math.rad(40),math.rad(-2-1*math.cos(sine/25))),.3)
  592. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(0),math.rad(0),math.rad(-55-1*math.cos(sine/25))),.3)
  593. end
  594. elseif torvel>2 and hitfloor~=nil then
  595. Anim="Walk"
  596. if attack==false then
  597. change=3
  598. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2+.1*math.cos(sine/9))*angles(math.rad(30+1*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  599. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*angles(math.rad(-20+1*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  600. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0)*angles(math.rad(-65-4*math.cos(sine/9)),math.rad(0),math.rad(10)),.3)
  601. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.7, -.7)*angles(math.rad(110),math.rad(-10-4*math.cos(sine/9)),math.rad(70)),.3)
  602. RH.C0=clerp(RH.C0,cf(1,-1+.2*math.cos(sine/9),0)*RHCF*angles(math.rad(-3),math.rad(0),math.rad(70*math.cos(sine/9))),.3)
  603. LH.C0=clerp(LH.C0,cf(-1,-1+.2*math.cos(sine/9),0)*LHCF*angles(math.rad(-3),math.rad(0),math.rad(70*math.cos(sine/9))),.3)
  604. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0)*angles(math.rad(-5),math.rad(10),math.rad(-67-.5*math.cos(sine/9))),.3)
  605. end
  606. end
  607. end
  608. if #Effects>0 then
  609. for e=1,#Effects do
  610. if Effects[e]~=nil then
  611. local Thing=Effects[e]
  612. if Thing~=nil then
  613. local Part=Thing[1]
  614. local Mode=Thing[2]
  615. local Delay=Thing[3]
  616. local IncX=Thing[4]
  617. local IncY=Thing[5]
  618. local IncZ=Thing[6]
  619. if Thing[1].Transparency<=1 then
  620. if Thing[2]=="Block1" then
  621. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  622. Mesh=Thing[1].Mesh
  623. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  624. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  625. elseif Thing[2]=="Cylinder" then
  626. Mesh=Thing[1].Mesh
  627. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  628. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  629. elseif Thing[2]=="Blood" then
  630. Mesh=Thing[7]
  631. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  632. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  633. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  634. elseif Thing[2]=="Elec" then
  635. Mesh=Thing[1].Mesh
  636. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  637. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  638. elseif Thing[2]=="Disappear" then
  639. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  640. end
  641. else
  642. Part.Parent=nil
  643. table.remove(Effects,e)
  644. end
  645. end
  646. end
  647. end
  648. end
  649. end
Add Comment
Please, Sign In to add comment