Advertisement
Guest User

excalibur

a guest
Jul 12th, 2018
8,198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.65 KB | None | 0 0
  1. local plrs = game:GetService("Players")
  2. local plr = plrs.LocalPlayer
  3. local char = plr.Character
  4. local tweenserv = game:GetService("TweenService")
  5. local lighting = game:GetService("Lighting")
  6. local hum = char:FindFirstChildOfClass("Humanoid")
  7. local mou = plr:GetMouse()
  8. local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  9. local root = char:FindFirstChild("HumanoidRootPart")
  10. local head = char:FindFirstChild("Head")
  11. local face = head:FindFirstChildOfClass("Decal")
  12. local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
  13. local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
  14. local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
  15. local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
  16. local neck = tor:FindFirstChild("Neck")
  17. local rootj = root:FindFirstChild("RootJoint")
  18. local LS = tor:FindFirstChild("Left Shoulder")
  19. local RS = tor:FindFirstChild("Right Shoulder")
  20. local LH = tor:FindFirstChild("Left Hip")
  21. local RH = tor:FindFirstChild("Right Hip")
  22. local bp = plr:FindFirstChild("Backpack")
  23. local cam = workspace.CurrentCamera
  24.  
  25. script.Name = "Oilsauce's Excalibur"
  26. hum:ClearAllChildren()
  27. char.Animate:remove()
  28.  
  29.  
  30. --Converted with ttyyuu12345's model to script plugin v4
  31. function sandbox(var,func)
  32. local env = getfenv(func)
  33. local newenv = setmetatable({},{
  34. __index = function(self,k)
  35. if k=="script" then
  36. return var
  37. else
  38. return env[k]
  39. end
  40. end,
  41. })
  42. setfenv(func,newenv)
  43. return func
  44. end
  45. cors = {}
  46. mas = Instance.new("Model",game:GetService("Lighting"))
  47. Model0 = Instance.new("Model")
  48. Part1 = Instance.new("Part")
  49. ManualWeld2 = Instance.new("ManualWeld")
  50. Part3 = Instance.new("Part")
  51. ManualWeld4 = Instance.new("ManualWeld")
  52. Part5 = Instance.new("Part")
  53. ManualWeld6 = Instance.new("ManualWeld")
  54. Part7 = Instance.new("Part")
  55. ManualWeld8 = Instance.new("ManualWeld")
  56. Part9 = Instance.new("Part")
  57. ManualWeld10 = Instance.new("ManualWeld")
  58. Part11 = Instance.new("Part")
  59. ManualWeld12 = Instance.new("ManualWeld")
  60. Part13 = Instance.new("Part")
  61. ManualWeld14 = Instance.new("ManualWeld")
  62. Part15 = Instance.new("Part")
  63. CornerWedgePart16 = Instance.new("CornerWedgePart")
  64. ManualWeld17 = Instance.new("ManualWeld")
  65. CornerWedgePart18 = Instance.new("CornerWedgePart")
  66. ManualWeld19 = Instance.new("ManualWeld")
  67. CornerWedgePart20 = Instance.new("CornerWedgePart")
  68. ManualWeld21 = Instance.new("ManualWeld")
  69. CornerWedgePart22 = Instance.new("CornerWedgePart")
  70. ManualWeld23 = Instance.new("ManualWeld")
  71. WedgePart24 = Instance.new("WedgePart")
  72. ManualWeld25 = Instance.new("ManualWeld")
  73. WedgePart26 = Instance.new("WedgePart")
  74. ManualWeld27 = Instance.new("ManualWeld")
  75. WedgePart28 = Instance.new("WedgePart")
  76. ManualWeld29 = Instance.new("ManualWeld")
  77. WedgePart30 = Instance.new("WedgePart")
  78. ManualWeld31 = Instance.new("ManualWeld")
  79. Part32 = Instance.new("Part")
  80. ManualWeld33 = Instance.new("ManualWeld")
  81. Part34 = Instance.new("Part")
  82. ManualWeld35 = Instance.new("ManualWeld")
  83. Model0.Name = "OilStyled-Arthur-Excalibur"
  84. Model0.Parent = mas
  85. Model0.PrimaryPart = Part32
  86. Part1.Parent = Model0
  87. Part1.Material = Enum.Material.Glass
  88. Part1.BrickColor = BrickColor.new("Gold")
  89. Part1.Rotation = Vector3.new(0, 90, 0)
  90. Part1.CanCollide = false
  91. Part1.Locked = true
  92. Part1.Shape = Enum.PartType.Cylinder
  93. Part1.Size = Vector3.new(1.20000005, 0.299999952, 0.299999952)
  94. Part1.CFrame = CFrame.new(-14.0602179, 9.95006561, 0.555490255, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  95. Part1.BottomSurface = Enum.SurfaceType.Smooth
  96. Part1.TopSurface = Enum.SurfaceType.Smooth
  97. Part1.Color = Color3.new(0.937255, 0.721569, 0.219608)
  98. Part1.Position = Vector3.new(-14.0602179, 9.95006561, 0.555490255)
  99. Part1.Orientation = Vector3.new(0, 90, 0)
  100. Part1.Color = Color3.new(0.937255, 0.721569, 0.219608)
  101. ManualWeld2.Name = "Weld"
  102. ManualWeld2.Parent = Part1
  103. ManualWeld2.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  104. ManualWeld2.C1 = CFrame.new(-4.24999714, -0.0073223114, 0.00865459442, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  105. ManualWeld2.Part0 = Part1
  106. ManualWeld2.Part1 = Part15
  107. Part3.Parent = Model0
  108. Part3.Material = Enum.Material.Glass
  109. Part3.BrickColor = BrickColor.new("Gold")
  110. Part3.Rotation = Vector3.new(-180, 0, 90)
  111. Part3.CanCollide = false
  112. Part3.Locked = true
  113. Part3.Shape = Enum.PartType.Cylinder
  114. Part3.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  115. Part3.CFrame = CFrame.new(-14.0602179, 9.95005989, 1.25548816, 0, -1, 0, -1, 0, 0, 0, 0, -1)
  116. Part3.BottomSurface = Enum.SurfaceType.Smooth
  117. Part3.TopSurface = Enum.SurfaceType.Smooth
  118. Part3.Color = Color3.new(0.937255, 0.721569, 0.219608)
  119. Part3.Position = Vector3.new(-14.0602179, 9.95005989, 1.25548816)
  120. Part3.Orientation = Vector3.new(0, 180, -90)
  121. Part3.Color = Color3.new(0.937255, 0.721569, 0.219608)
  122. ManualWeld4.Name = "Weld"
  123. ManualWeld4.Parent = Part3
  124. ManualWeld4.C0 = CFrame.new(0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1)
  125. ManualWeld4.C1 = CFrame.new(-4.94999504, -0.00732803345, 0.00865459442, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  126. ManualWeld4.Part0 = Part3
  127. ManualWeld4.Part1 = Part15
  128. Part5.Parent = Model0
  129. Part5.Material = Enum.Material.Wood
  130. Part5.BrickColor = BrickColor.new("CGA brown")
  131. Part5.Rotation = Vector3.new(0, 90, 0)
  132. Part5.CanCollide = false
  133. Part5.Locked = true
  134. Part5.Shape = Enum.PartType.Cylinder
  135. Part5.Size = Vector3.new(0.699999928, 0.349999994, 0.349999994)
  136. Part5.CFrame = CFrame.new(-14.0602179, 9.95005989, 0.60549283, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  137. Part5.BottomSurface = Enum.SurfaceType.Smooth
  138. Part5.TopSurface = Enum.SurfaceType.Smooth
  139. Part5.Color = Color3.new(0.666667, 0.333333, 0)
  140. Part5.Position = Vector3.new(-14.0602179, 9.95005989, 0.60549283)
  141. Part5.Orientation = Vector3.new(0, 90, 0)
  142. Part5.Color = Color3.new(0.666667, 0.333333, 0)
  143. ManualWeld6.Name = "Weld"
  144. ManualWeld6.Parent = Part5
  145. ManualWeld6.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  146. ManualWeld6.C1 = CFrame.new(-4.29999971, -0.00732803345, 0.00865459442, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  147. ManualWeld6.Part0 = Part5
  148. ManualWeld6.Part1 = Part15
  149. Part7.Parent = Model0
  150. Part7.Material = Enum.Material.Glass
  151. Part7.BrickColor = BrickColor.new("Gold")
  152. Part7.Rotation = Vector3.new(0, 90, 0)
  153. Part7.CanCollide = false
  154. Part7.Locked = true
  155. Part7.Size = Vector3.new(0.199999899, 0.399999976, 2)
  156. Part7.CFrame = CFrame.new(-14.018878, 9.95738792, 0.0554900169, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  157. Part7.BottomSurface = Enum.SurfaceType.Smooth
  158. Part7.TopSurface = Enum.SurfaceType.Smooth
  159. Part7.Color = Color3.new(0.937255, 0.721569, 0.219608)
  160. Part7.Position = Vector3.new(-14.018878, 9.95738792, 0.0554900169)
  161. Part7.Orientation = Vector3.new(0, 90, 0)
  162. Part7.Color = Color3.new(0.937255, 0.721569, 0.219608)
  163. ManualWeld8.Name = "Weld"
  164. ManualWeld8.Parent = Part7
  165. ManualWeld8.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  166. ManualWeld8.C1 = CFrame.new(-3.7499969, 0, 0.0499944687, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  167. ManualWeld8.Part0 = Part7
  168. ManualWeld8.Part1 = Part15
  169. Part9.Parent = Model0
  170. Part9.Material = Enum.Material.Glass
  171. Part9.BrickColor = BrickColor.new("Lily white")
  172. Part9.Reflectance = 0.10000000149012
  173. Part9.Rotation = Vector3.new(0, 90, 0)
  174. Part9.CanCollide = false
  175. Part9.Locked = true
  176. Part9.Size = Vector3.new(4.69999981, 0.0999999717, 0.100000016)
  177. Part9.CFrame = CFrame.new(-14.1688719, 9.95738411, -2.39450908, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  178. Part9.BottomSurface = Enum.SurfaceType.Smooth
  179. Part9.TopSurface = Enum.SurfaceType.Smooth
  180. Part9.Color = Color3.new(0.929412, 0.917647, 0.917647)
  181. Part9.Position = Vector3.new(-14.1688719, 9.95738411, -2.39450908)
  182. Part9.Orientation = Vector3.new(0, 90, 0)
  183. Part9.Color = Color3.new(0.929412, 0.917647, 0.917647)
  184. ManualWeld10.Name = "Weld"
  185. ManualWeld10.Parent = Part9
  186. ManualWeld10.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  187. ManualWeld10.C1 = CFrame.new(-1.29999781, -3.81469727e-06, -0.0999994278, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  188. ManualWeld10.Part0 = Part9
  189. ManualWeld10.Part1 = Part15
  190. Part11.Parent = Model0
  191. Part11.Material = Enum.Material.Glass
  192. Part11.BrickColor = BrickColor.new("Lily white")
  193. Part11.Reflectance = 0.10000000149012
  194. Part11.Rotation = Vector3.new(0, 90, 0)
  195. Part11.CanCollide = false
  196. Part11.Locked = true
  197. Part11.Size = Vector3.new(4.69999981, 0.0999999717, 0.100000016)
  198. Part11.CFrame = CFrame.new(-13.9688702, 9.95738602, -2.39450788, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  199. Part11.BottomSurface = Enum.SurfaceType.Smooth
  200. Part11.TopSurface = Enum.SurfaceType.Smooth
  201. Part11.Color = Color3.new(0.929412, 0.917647, 0.917647)
  202. Part11.Position = Vector3.new(-13.9688702, 9.95738602, -2.39450788)
  203. Part11.Orientation = Vector3.new(0, 90, 0)
  204. Part11.Color = Color3.new(0.929412, 0.917647, 0.917647)
  205. ManualWeld12.Name = "Weld"
  206. ManualWeld12.Parent = Part11
  207. ManualWeld12.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  208. ManualWeld12.C1 = CFrame.new(-1.299999, -1.90734863e-06, 0.100002289, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  209. ManualWeld12.Part0 = Part11
  210. ManualWeld12.Part1 = Part15
  211. Part13.Parent = Model0
  212. Part13.Material = Enum.Material.Glass
  213. Part13.BrickColor = BrickColor.new("Lily white")
  214. Part13.Reflectance = 0.10000000149012
  215. Part13.Rotation = Vector3.new(0, 90, 0)
  216. Part13.CanCollide = false
  217. Part13.Locked = true
  218. Part13.Size = Vector3.new(2.5999999, 0.0500000007, 0.100000016)
  219. Part13.CFrame = CFrame.new(-14.0688677, 9.95738602, -1.34450984, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  220. Part13.BottomSurface = Enum.SurfaceType.Smooth
  221. Part13.TopSurface = Enum.SurfaceType.Smooth
  222. Part13.Color = Color3.new(0.929412, 0.917647, 0.917647)
  223. Part13.Position = Vector3.new(-14.0688677, 9.95738602, -1.34450984)
  224. Part13.Orientation = Vector3.new(0, 90, 0)
  225. Part13.Color = Color3.new(0.929412, 0.917647, 0.917647)
  226. ManualWeld14.Name = "Weld"
  227. ManualWeld14.Parent = Part13
  228. ManualWeld14.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  229. ManualWeld14.C1 = CFrame.new(-2.34999704, -1.90734863e-06, 4.76837158e-06, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  230. ManualWeld14.Part0 = Part13
  231. ManualWeld14.Part1 = Part15
  232. Part15.Parent = Model0
  233. Part15.Material = Enum.Material.Glass
  234. Part15.BrickColor = BrickColor.new("Lily white")
  235. Part15.Reflectance = 0.10000000149012
  236. Part15.Rotation = Vector3.new(0, 90, 0)
  237. Part15.CanCollide = false
  238. Part15.Locked = true
  239. Part15.Size = Vector3.new(2.0999999, 0.100000001, 0.100000016)
  240. Part15.CFrame = CFrame.new(-14.0688725, 9.95738792, -3.69450688, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  241. Part15.BottomSurface = Enum.SurfaceType.Smooth
  242. Part15.TopSurface = Enum.SurfaceType.Smooth
  243. Part15.Color = Color3.new(0.929412, 0.917647, 0.917647)
  244. Part15.Position = Vector3.new(-14.0688725, 9.95738792, -3.69450688)
  245. Part15.Orientation = Vector3.new(0, 90, 0)
  246. Part15.Color = Color3.new(0.929412, 0.917647, 0.917647)
  247. CornerWedgePart16.Parent = Model0
  248. CornerWedgePart16.Material = Enum.Material.Glass
  249. CornerWedgePart16.BrickColor = BrickColor.new("Lily white")
  250. CornerWedgePart16.Reflectance = 0.10000000149012
  251. CornerWedgePart16.Rotation = Vector3.new(-90, -90, 0)
  252. CornerWedgePart16.CanCollide = false
  253. CornerWedgePart16.Locked = true
  254. CornerWedgePart16.Size = Vector3.new(0.0500000007, 0.899999976, 0.150000006)
  255. CornerWedgePart16.CFrame = CFrame.new(-14.1444778, 9.93199825, -5.18227577, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  256. CornerWedgePart16.Color = Color3.new(0.929412, 0.917647, 0.917647)
  257. CornerWedgePart16.Position = Vector3.new(-14.1444778, 9.93199825, -5.18227577)
  258. CornerWedgePart16.Orientation = Vector3.new(0, -90, 90)
  259. CornerWedgePart16.Color = Color3.new(0.929412, 0.917647, 0.917647)
  260. ManualWeld17.Name = "Weld"
  261. ManualWeld17.Parent = CornerWedgePart16
  262. ManualWeld17.C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  263. ManualWeld17.C1 = CFrame.new(1.48776889, -0.0253896713, -0.0756053925, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  264. ManualWeld17.Part0 = CornerWedgePart16
  265. ManualWeld17.Part1 = Part15
  266. CornerWedgePart18.Parent = Model0
  267. CornerWedgePart18.Material = Enum.Material.Glass
  268. CornerWedgePart18.BrickColor = BrickColor.new("Lily white")
  269. CornerWedgePart18.Reflectance = 0.10000000149012
  270. CornerWedgePart18.Rotation = Vector3.new(-90, 90, 0)
  271. CornerWedgePart18.CanCollide = false
  272. CornerWedgePart18.Locked = true
  273. CornerWedgePart18.Size = Vector3.new(0.0500000007, 0.899999976, 0.150000006)
  274. CornerWedgePart18.CFrame = CFrame.new(-13.9944744, 9.98199368, -5.18227577, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  275. CornerWedgePart18.Color = Color3.new(0.929412, 0.917647, 0.917647)
  276. CornerWedgePart18.Position = Vector3.new(-13.9944744, 9.98199368, -5.18227577)
  277. CornerWedgePart18.Orientation = Vector3.new(0, 90, -90)
  278. CornerWedgePart18.Color = Color3.new(0.929412, 0.917647, 0.917647)
  279. ManualWeld19.Name = "Weld"
  280. ManualWeld19.Parent = CornerWedgePart18
  281. ManualWeld19.C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  282. ManualWeld19.C1 = CFrame.new(1.48776889, 0.024605751, 0.0743980408, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  283. ManualWeld19.Part0 = CornerWedgePart18
  284. ManualWeld19.Part1 = Part15
  285. CornerWedgePart20.Parent = Model0
  286. CornerWedgePart20.Material = Enum.Material.Glass
  287. CornerWedgePart20.BrickColor = BrickColor.new("Lily white")
  288. CornerWedgePart20.Reflectance = 0.10000000149012
  289. CornerWedgePart20.Rotation = Vector3.new(-90, 0, 0)
  290. CornerWedgePart20.CanCollide = false
  291. CornerWedgePart20.Locked = true
  292. CornerWedgePart20.Size = Vector3.new(0.150000006, 0.899999976, 0.0500000007)
  293. CornerWedgePart20.CFrame = CFrame.new(-14.1444778, 9.98199844, -5.18227577, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  294. CornerWedgePart20.Color = Color3.new(0.929412, 0.917647, 0.917647)
  295. CornerWedgePart20.Position = Vector3.new(-14.1444778, 9.98199844, -5.18227577)
  296. CornerWedgePart20.Orientation = Vector3.new(-90, 0, 0)
  297. CornerWedgePart20.Color = Color3.new(0.929412, 0.917647, 0.917647)
  298. ManualWeld21.Name = "Weld"
  299. ManualWeld21.Parent = CornerWedgePart20
  300. ManualWeld21.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  301. ManualWeld21.C1 = CFrame.new(1.48776889, 0.0246105194, -0.0756053925, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  302. ManualWeld21.Part0 = CornerWedgePart20
  303. ManualWeld21.Part1 = Part15
  304. CornerWedgePart22.Parent = Model0
  305. CornerWedgePart22.Material = Enum.Material.Glass
  306. CornerWedgePart22.BrickColor = BrickColor.new("Lily white")
  307. CornerWedgePart22.Reflectance = 0.10000000149012
  308. CornerWedgePart22.Rotation = Vector3.new(90, 0, -180)
  309. CornerWedgePart22.CanCollide = false
  310. CornerWedgePart22.Locked = true
  311. CornerWedgePart22.Size = Vector3.new(0.150000006, 0.899999976, 0.0500000007)
  312. CornerWedgePart22.CFrame = CFrame.new(-13.9944782, 9.93199444, -5.18227577, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  313. CornerWedgePart22.Color = Color3.new(0.929412, 0.917647, 0.917647)
  314. CornerWedgePart22.Position = Vector3.new(-13.9944782, 9.93199444, -5.18227577)
  315. CornerWedgePart22.Orientation = Vector3.new(90, 180, 0)
  316. CornerWedgePart22.Color = Color3.new(0.929412, 0.917647, 0.917647)
  317. ManualWeld23.Name = "Weld"
  318. ManualWeld23.Parent = CornerWedgePart22
  319. ManualWeld23.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  320. ManualWeld23.C1 = CFrame.new(1.48776889, -0.025393486, 0.0743942261, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  321. ManualWeld23.Part0 = CornerWedgePart22
  322. ManualWeld23.Part1 = Part15
  323. WedgePart24.Parent = Model0
  324. WedgePart24.Material = Enum.Material.Glass
  325. WedgePart24.BrickColor = BrickColor.new("Gold")
  326. WedgePart24.Rotation = Vector3.new(-90, 90, 0)
  327. WedgePart24.CanCollide = false
  328. WedgePart24.Locked = true
  329. WedgePart24.Size = Vector3.new(0.399999946, 0.200000018, 0.50000006)
  330. WedgePart24.CFrame = CFrame.new(-14.3113461, 9.95738983, -0.127655029, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  331. WedgePart24.BottomSurface = Enum.SurfaceType.Smooth
  332. WedgePart24.Color = Color3.new(0.937255, 0.721569, 0.219608)
  333. WedgePart24.Position = Vector3.new(-14.3113461, 9.95738983, -0.127655029)
  334. WedgePart24.Orientation = Vector3.new(0, 90, -90)
  335. WedgePart24.Color = Color3.new(0.937255, 0.721569, 0.219608)
  336. ManualWeld25.Name = "Weld"
  337. ManualWeld25.Parent = WedgePart24
  338. ManualWeld25.C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  339. ManualWeld25.C1 = CFrame.new(-3.56685185, 1.90734863e-06, -0.242473602, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  340. ManualWeld25.Part0 = WedgePart24
  341. ManualWeld25.Part1 = Part15
  342. WedgePart26.Parent = Model0
  343. WedgePart26.Material = Enum.Material.Glass
  344. WedgePart26.BrickColor = BrickColor.new("Gold")
  345. WedgePart26.Rotation = Vector3.new(-90, -90, 0)
  346. WedgePart26.CanCollide = false
  347. WedgePart26.Locked = true
  348. WedgePart26.Size = Vector3.new(0.399999946, 0.200000018, 0.50000006)
  349. WedgePart26.CFrame = CFrame.new(-13.8113518, 9.95738792, -0.127655029, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  350. WedgePart26.BottomSurface = Enum.SurfaceType.Smooth
  351. WedgePart26.Color = Color3.new(0.937255, 0.721569, 0.219608)
  352. WedgePart26.Position = Vector3.new(-13.8113518, 9.95738792, -0.127655029)
  353. WedgePart26.Orientation = Vector3.new(0, -90, 90)
  354. WedgePart26.Color = Color3.new(0.937255, 0.721569, 0.219608)
  355. ManualWeld27.Name = "Weld"
  356. ManualWeld27.Parent = WedgePart26
  357. ManualWeld27.C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  358. ManualWeld27.C1 = CFrame.new(-3.56685185, 0, 0.257520676, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  359. ManualWeld27.Part0 = WedgePart26
  360. ManualWeld27.Part1 = Part15
  361. WedgePart28.Parent = Model0
  362. WedgePart28.Material = Enum.Material.Glass
  363. WedgePart28.BrickColor = BrickColor.new("Gold")
  364. WedgePart28.Rotation = Vector3.new(90, 90, 0)
  365. WedgePart28.CanCollide = false
  366. WedgePart28.Locked = true
  367. WedgePart28.Size = Vector3.new(0.399999946, 0.200000018, 0.50000006)
  368. WedgePart28.CFrame = CFrame.new(-13.271347, 9.95738983, 0.252345085, -2.62268316e-07, -8.74227766e-08, 1, 1, -2.29282264e-14, 2.62268316e-07, 0, 1, 8.74227766e-08)
  369. WedgePart28.BottomSurface = Enum.SurfaceType.Smooth
  370. WedgePart28.Color = Color3.new(0.937255, 0.721569, 0.219608)
  371. WedgePart28.Position = Vector3.new(-13.271347, 9.95738983, 0.252345085)
  372. WedgePart28.Orientation = Vector3.new(0, 90, 90)
  373. WedgePart28.Color = Color3.new(0.937255, 0.721569, 0.219608)
  374. ManualWeld29.Name = "Weld"
  375. ManualWeld29.Parent = WedgePart28
  376. ManualWeld29.C0 = CFrame.new(0, 0, 0, -2.62268316e-07, 1, 0, -8.74227766e-08, -2.29282264e-14, 1, 1, 2.62268316e-07, 8.74227766e-08)
  377. ManualWeld29.C1 = CFrame.new(-3.94685197, 1.90734863e-06, 0.797525406, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  378. ManualWeld29.Part0 = WedgePart28
  379. ManualWeld29.Part1 = Part15
  380. WedgePart30.Parent = Model0
  381. WedgePart30.Material = Enum.Material.Glass
  382. WedgePart30.BrickColor = BrickColor.new("Gold")
  383. WedgePart30.Rotation = Vector3.new(90, -90, 0)
  384. WedgePart30.CanCollide = false
  385. WedgePart30.Locked = true
  386. WedgePart30.Size = Vector3.new(0.399999946, 0.200000033, 0.50000006)
  387. WedgePart30.CFrame = CFrame.new(-14.7713461, 9.95738983, 0.252345085, 1.74845553e-07, 8.74227766e-08, -1, -1, 1.52854837e-14, -1.74845553e-07, 0, 1, 8.74227766e-08)
  388. WedgePart30.BottomSurface = Enum.SurfaceType.Smooth
  389. WedgePart30.Color = Color3.new(0.937255, 0.721569, 0.219608)
  390. WedgePart30.Position = Vector3.new(-14.7713461, 9.95738983, 0.252345085)
  391. WedgePart30.Orientation = Vector3.new(0, -90, -90)
  392. WedgePart30.Color = Color3.new(0.937255, 0.721569, 0.219608)
  393. ManualWeld31.Name = "Weld"
  394. ManualWeld31.Parent = WedgePart30
  395. ManualWeld31.C0 = CFrame.new(0, 0, 0, 1.74845553e-07, -1, 0, 8.74227766e-08, 1.52854837e-14, 1, -1, -1.74845553e-07, 8.74227766e-08)
  396. ManualWeld31.C1 = CFrame.new(-3.94685197, 1.90734863e-06, -0.70247364, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  397. ManualWeld31.Part0 = WedgePart30
  398. ManualWeld31.Part1 = Part15
  399. Part32.Name = "handleP"
  400. Part32.Parent = Model0
  401. Part32.Transparency = 1
  402. Part32.CanCollide = false
  403. Part32.Locked = true
  404. Part32.Size = Vector3.new(1, 1, 1)
  405. Part32.CFrame = CFrame.new(-14.0687914, 9.95006847, 0.769564867, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  406. Part32.BottomSurface = Enum.SurfaceType.Smooth
  407. Part32.TopSurface = Enum.SurfaceType.Smooth
  408. Part32.Position = Vector3.new(-14.0687914, 9.95006847, 0.769564867)
  409. ManualWeld33.Name = "Weld"
  410. ManualWeld33.Parent = Part32
  411. ManualWeld33.C1 = CFrame.new(-4.46407175, -0.00731945038, 8.10623169e-05, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  412. ManualWeld33.Part0 = Part32
  413. ManualWeld33.Part1 = Part15
  414. Part34.Name = "bladeP"
  415. Part34.Parent = Model0
  416. --[[Part34.Transparency = 0.7
  417. Part34.BrickColor = BrickColor.new("New Yeller")
  418. Part34.Material = "Neon"]]
  419. Part34.Transparency = 1
  420. Part34.CanCollide = false
  421. Part34.Locked = true
  422. Part34.Size = Vector3.new(0.6, 0.2, 5.55)
  423. Part34.CFrame = CFrame.new(-14.0687914, 9.95006847, -2.98043513, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  424. Part34.BottomSurface = Enum.SurfaceType.Smooth
  425. Part34.TopSurface = Enum.SurfaceType.Smooth
  426. Part34.Position = Vector3.new(-14.0687914, 9.95006847, -2.98043513)
  427. ManualWeld35.Name = "Weld"
  428. ManualWeld35.Parent = Part34
  429. ManualWeld35.C1 = CFrame.new(-0.714071751, -0.00731945038, 8.10623169e-05, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  430. ManualWeld35.Part0 = Part34
  431. ManualWeld35.Part1 = Part15
  432. for i,v in pairs(mas:GetChildren()) do
  433. v.Parent = char
  434. Excalibur = v
  435. handleP = Part32
  436. bladeP = Part34
  437. pcall(function() v:MakeJoints() end)
  438. end
  439. mas:Destroy()
  440. for i,v in pairs(cors) do
  441. spawn(function()
  442. pcall(v)
  443. end)
  444. end
  445.  
  446. local AT0 = Instance.new("Attachment", bladeP)
  447. AT0.Position = Vector3.new(0, 0, -2.7)
  448.  
  449. local AT1 = Instance.new("Attachment", bladeP)
  450. AT1.Position = Vector3.new(0, 0, 2.7)
  451.  
  452. local trial = Instance.new("Trail", bladeP)
  453. trial.Attachment0 = AT0
  454. trial.Attachment1 = AT1
  455. trial.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
  456. trial.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(1, 0, 0)})
  457. trial.Lifetime = 0.25
  458. trial.LightEmission = 1
  459. trial.Enabled = false
  460.  
  461. local ws = hum.WalkSpeed
  462. local jp = hum.JumpPower
  463. local nws = ws
  464. local njp = jp
  465.  
  466. local rootj0 = rootj.C0
  467. local neck0 = neck.C0
  468. local LS0 = LS.C0
  469. local RS0 = RS.C0
  470. local LH0 = LH.C0
  471. local RH0 = RH.C0
  472. local rootj1 = rootj.C1
  473. local neck1 = neck.C1
  474. local LS1 = LS.C1
  475. local RS1 = RS.C1
  476. local LH1 = LH.C1
  477. local RH1 = RH.C1
  478.  
  479. -----------------------------------------------------------------------------
  480.  
  481. local CFn = CFrame.new
  482. local CFa = CFrame.Angles
  483. local Rad = math.rad
  484. local Cos = math.cos
  485. local Sin = math.sin
  486. local sine = 1
  487. local running = false
  488. local Slashing = false
  489. local lSlashing = false
  490. local attackstate = 1
  491. local cut = false
  492. local attacking = false
  493. local shoot = false
  494. local Slamming = false
  495. local LOCKEDON = false
  496.  
  497. local rarmP = Instance.new("Part", char)
  498. rarmP.Size = Vector3.new(1, 1, 1)
  499. rarmP.CanCollide = false
  500. rarmP.Transparency = 1
  501. rarmP.Locked = true
  502.  
  503. local rarmPw = Instance.new("Weld", rarmP)
  504. rarmPw.Part0 = rarm
  505. rarmPw.Part1 = rarmP
  506. rarmPw.C1 = CFn(1, 0, 0) * CFa(0, 0, Rad(-90))
  507.  
  508. local hPw = Instance.new("Weld", handleP)
  509. hPw.Part0 = rarmP
  510. hPw.Part1 = handleP
  511.  
  512. local hPw0 = hPw.C0
  513. local hPw1 = hPw.C1
  514.  
  515. local tweeninfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0)
  516.  
  517. -----------------------------------------------------------------------------
  518.  
  519. ArtificialHB = Instance.new("BindableEvent", script)
  520. ArtificialHB.Name = "Heartbeat"
  521. script:WaitForChild("Heartbeat")
  522.  
  523. frame = 1 / 60
  524. tf = 0
  525. allowframeloss = false
  526. tossremainder = false
  527.  
  528.  
  529. lastframe = tick()
  530. script.Heartbeat:Fire()
  531.  
  532.  
  533. game:GetService("RunService").Heartbeat:connect(function(s, p)
  534. tf = tf + s
  535. if tf >= frame then
  536. if allowframeloss then
  537. script.Heartbeat:Fire()
  538. lastframe = tick()
  539. else
  540. for i = 1, math.floor(tf / frame) do
  541. script.Heartbeat:Fire()
  542. end
  543. lastframe = tick()
  544. end
  545. if tossremainder then
  546. tf = 0
  547. else
  548. tf = tf - frame * math.floor(tf / frame)
  549. end
  550. end
  551. end)
  552.  
  553. function swait(num)
  554. if num == 0 or num == nil then
  555. game:service("RunService").Stepped:wait(0)
  556. else
  557. for i = 0, num do
  558. game:service("RunService").Stepped:wait(0)
  559. end
  560. end
  561. end
  562.  
  563. function clerp(a, b, t)
  564. return a:lerp(b, t)
  565. end
  566.  
  567. function GetTorsos(pos,dis)
  568. local people = workspace:GetChildren()
  569. local peopletab = {}
  570. local temp = nil
  571. local humtor = nil
  572. local temp2 = nil
  573. for x = 1, #people do
  574. temp2 = people[x]
  575. if temp2.className == "Model" and temp2 ~= char and temp2:FindFirstChildOfClass("Humanoid") then
  576. temp = temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso")
  577. humtor = temp2:FindFirstChildOfClass("Humanoid")
  578. if temp ~= nil and humtor ~= nil and humtor.Health > 0 then
  579. if (temp.Position - pos).magnitude < dis then
  580. table.insert(peopletab,temp)
  581. dis = (temp.Position - pos).magnitude
  582. end
  583. end
  584. end
  585. end
  586. return peopletab
  587. end
  588.  
  589. function Slash()
  590. if Slashing == false and attacking == false then
  591. attacking = true
  592. Slashing = true
  593. cut = true
  594. hum.WalkSpeed = 2
  595. hum.JumpPower = 5
  596. if Slashing == true and attacking == true then
  597. tdmg = bladeP.Touched:connect(function(hit)
  598. if cut == true and Slashing == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) and hit.Name ~= "scar" then
  599. if hit.Parent == nil then
  600. return
  601. end
  602. cut = false
  603. local cutman = hit.Parent
  604. local cutthing = hit
  605. local cuthum = cutman:FindFirstChildOfClass("Humanoid")
  606. cuthum.Health = cuthum.Health - 10
  607. for i = 1,10 do
  608. local ranAng = math.random(-360, 360)
  609. local scar = Instance.new("Part", cutman)
  610. scar.Name = "scar"
  611. scar.CanCollide = false
  612. scar.Anchored = true
  613. scar.Material = "Neon"
  614. scar.BrickColor = BrickColor.new("New Yeller")
  615. scar.Size = Vector3.new(0.1, 0.1, 0.1)
  616. local scarm = Instance.new("SpecialMesh", scar)
  617. scarm.MeshType = "Sphere"
  618. scarm.Scale = Vector3.new(1, 20, 20)
  619. scar.CFrame = cutthing.CFrame * CFa(Rad(ranAng), Rad(ranAng), Rad(ranAng))
  620. local partprop = {Scale = Vector3.new(150, 10, 10)}
  621. local partprop2 = {Transparency = 1}
  622. local tween = tweenserv:Create(scarm, tweeninfo, partprop)
  623. local tween2 = tweenserv:Create(scar, tweeninfo, partprop2)
  624. tween:Play()
  625. tween2:Play()
  626. game:GetService("Debris"):AddItem(scar, 0.5)
  627. end
  628. elseif cut == true and Slashing == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) and hit.Name ~= "scar" then
  629. if hit.Parent.Parent == nil then
  630. return
  631. end
  632. cut = false
  633. local cutman = hit.Parent.Parent
  634. local cutthing = hit
  635. local cuthum = cutman:FindFirstChildOfClass("Humanoid")
  636. cuthum.Health = cuthum.Health - 10
  637. for i = 1,10 do
  638. local ranAng = math.random(-360, 360)
  639. local scar = Instance.new("Part", cutman)
  640. scar.Name = "scar"
  641. scar.CanCollide = false
  642. scar.Anchored = true
  643. scar.Material = "Neon"
  644. scar.BrickColor = BrickColor.new("New Yeller")
  645. scar.Size = Vector3.new(0.1, 0.1, 0.1)
  646. local scarm = Instance.new("SpecialMesh", scar)
  647. scarm.MeshType = "Sphere"
  648. scarm.Scale = Vector3.new(1, 20, 20)
  649. scar.CFrame = cutthing.CFrame * CFa(Rad(ranAng), Rad(ranAng), Rad(ranAng))
  650. local partprop = {Scale = Vector3.new(150, 10, 10)}
  651. local partprop2 = {Transparency = 1}
  652. local tween = tweenserv:Create(scarm, tweeninfo, partprop)
  653. local tween2 = tweenserv:Create(scar, tweeninfo, partprop2)
  654. tween:Play()
  655. tween2:Play()
  656. game:GetService("Debris"):AddItem(scar, 0.5)
  657. end
  658. end
  659. end)
  660. end
  661. if attackstate == 1 then
  662. for i = 0,1,.15 do
  663. hPw.C1 = clerp(hPw.C1, hPw1, i)
  664. hPw.C0 = clerp(hPw.C0, hPw0, i)
  665. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
  666. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-10), 0, Rad(-15)), i)
  667. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
  668. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(-50), Rad(-110), Rad(-120)), i)
  669. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
  670. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
  671. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  672. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  673. LS.C0 = clerp(LS.C0, LS0, i)
  674. RS.C0 = clerp(RS.C0, RS0, i)
  675. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  676. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  677. swait()
  678. end
  679. if not bladeP:FindFirstChild("1,2sounds") then
  680. local sound12 = Instance.new("Sound", bladeP)
  681. sound12.SoundId = "rbxassetid://588693156"
  682. sound12.Volume = 2
  683. sound12.Name = "1,2sounds"
  684. sound12:Play()
  685. else
  686. local sound12 = bladeP:FindFirstChild("1,2sounds")
  687. sound12:Play()
  688. end
  689. for i = 0,1,.15 do
  690. hPw.C1 = clerp(hPw.C1, hPw1, i)
  691. hPw.C0 = clerp(hPw.C0, hPw0, i)
  692. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
  693. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(10), 0, Rad(25)), i)
  694. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
  695. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(100), Rad(-20), Rad(10)), i)
  696. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
  697. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(10)), i)
  698. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  699. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  700. LS.C0 = clerp(LS.C0, LS0, i)
  701. RS.C0 = clerp(RS.C0, RS0, i)
  702. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  703. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  704. swait()
  705. end
  706. attackstate = 2
  707. elseif attackstate == 2 then
  708. for i = 0,1,.15 do
  709. hPw.C1 = clerp(hPw.C1, hPw1, i)
  710. hPw.C0 = clerp(hPw.C0, hPw0, i)
  711. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
  712. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(10), 0, Rad(25)), i)
  713. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
  714. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(70), Rad(-20), Rad(-110)), i)
  715. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
  716. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(10)), i)
  717. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  718. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  719. LS.C0 = clerp(LS.C0, LS0, i)
  720. RS.C0 = clerp(RS.C0, RS0, i)
  721. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  722. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  723. swait()
  724. end
  725. if not bladeP:FindFirstChild("1,2sounds") then
  726. local sound12 = Instance.new("Sound", bladeP)
  727. sound12.SoundId = "rbxassetid://588693156"
  728. sound12.Volume = 2
  729. sound12.Name = "1,2sounds"
  730. sound12:Play()
  731. else
  732. local sound12 = bladeP:FindFirstChild("1,2sounds")
  733. sound12:Play()
  734. end
  735. for i = 0,1,.15 do
  736. hPw.C1 = clerp(hPw.C1, hPw1 * CFa(0, Rad(-20), 0), i)
  737. hPw.C0 = clerp(hPw.C0, hPw0, i)
  738. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
  739. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-10), 0, Rad(-15)), i)
  740. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
  741. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(-20), Rad(-10), Rad(-20)), i)
  742. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
  743. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
  744. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  745. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  746. LS.C0 = clerp(LS.C0, LS0, i)
  747. RS.C0 = clerp(RS.C0, RS0, i)
  748. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  749. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  750. swait()
  751. end
  752. attackstate = 3
  753. elseif attackstate == 3 then
  754. for i = 0,1,.15 do
  755. hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(10), Rad(-35)), i)
  756. hPw.C0 = clerp(hPw.C0, hPw0, i)
  757. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(15), 0, Rad(-15)), i)
  758. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(45), 0, 0), i)
  759. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(120)), i)
  760. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-120)), i)
  761. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-45)), i)
  762. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(45)), i)
  763. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  764. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  765. LS.C0 = clerp(LS.C0, LS0, i)
  766. RS.C0 = clerp(RS.C0, RS0, i)
  767. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  768. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  769. swait()
  770. end
  771. if not bladeP:FindFirstChild("3sounds") then
  772. local sound3 = Instance.new("Sound", bladeP)
  773. sound3.SoundId = "rbxassetid://588693922"
  774. sound3.Volume = 2
  775. sound3.Name = "3sounds"
  776. sound3:Play()
  777. else
  778. local sound3 = bladeP:FindFirstChild("3sounds")
  779. sound3:Play()
  780. end
  781. for i = 0,1,.15 do
  782. hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(-30), Rad(-35)), i)
  783. hPw.C0 = clerp(hPw.C0, hPw0, i)
  784. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-15)), i)
  785. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-40), 0, 0), i)
  786. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(10)), i)
  787. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-10)), i)
  788. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(40)), i)
  789. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-40)), i)
  790. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  791. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  792. LS.C0 = clerp(LS.C0, LS0, i)
  793. RS.C0 = clerp(RS.C0, RS0, i)
  794. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  795. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  796. swait()
  797. end
  798. attackstate = 1
  799. end
  800. hum.WalkSpeed = nws
  801. hum.JumpPower = jp
  802. cut = false
  803. tdmg:Disconnect()
  804. Slashing = false
  805. attacking = false
  806. end
  807. end
  808.  
  809. function longSlash()
  810. if lSlashing == false and attacking == false then
  811. attacking = true
  812. lSlashing = true
  813. shoot = true
  814. hum.WalkSpeed = 2
  815. hum.JumpPower = 5
  816. for i = 0,1,.15 do
  817. hPw.C1 = clerp(hPw.C1, hPw1, i)
  818. hPw.C0 = clerp(hPw.C0, hPw0, i)
  819. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
  820. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(20), 0, Rad(-30)), i)
  821. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
  822. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(-50), Rad(-70), Rad(-160)), i)
  823. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-20)), i)
  824. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(20)), i)
  825. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  826. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  827. LS.C0 = clerp(LS.C0, LS0, i)
  828. RS.C0 = clerp(RS.C0, RS0, i)
  829. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  830. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  831. swait()
  832. end
  833. local slashp = Instance.new("Part", char)
  834. slashp.BrickColor = BrickColor.new("New Yeller")
  835. slashp.Material = "Neon"
  836. slashp.CanCollide = false
  837. slashp.Size = Vector3.new(15, 3, 1)
  838. slashp.Transparency = 1
  839. slashp.CFrame = CFn(bladeP.CFrame.p, mou.Hit.p)
  840. local slashat0 = Instance.new("Attachment", slashp)
  841. slashat0.Position = Vector3.new(7.5, 0, 0)
  842. local slashat1 = Instance.new("Attachment", slashp)
  843. slashat1.Position = Vector3.new(-7.5, 0, 0)
  844. local slashat2 = Instance.new("Attachment", slashp)
  845. slashat2.Position = Vector3.new(7.5, -1.5, 0)
  846. local slashat3 = Instance.new("Attachment", slashp)
  847. slashat3.Position = Vector3.new(-7.5, -1.5, 0)
  848. local slashat4 = Instance.new("Attachment", slashp)
  849. slashat4.Position = Vector3.new(7.5, 1.5, 0)
  850. local slashat5 = Instance.new("Attachment", slashp)
  851. slashat5.Position = Vector3.new(-7.5, 1.5, 0)
  852. local slashpt = Instance.new("Trail", slashp)
  853. slashpt.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
  854. slashpt.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.5, 0, 0), NumberSequenceKeypoint.new(1, 0, 0)})
  855. slashpt.Lifetime = 0.35
  856. slashpt.LightEmission = 1
  857. slashpt.Attachment0 = slashat0
  858. slashpt.Attachment1 = slashat1
  859. slashpt.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.6, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)})
  860. local slashpt2 = Instance.new("Trail", slashp)
  861. slashpt2.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
  862. slashpt2.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.5, 0, 0), NumberSequenceKeypoint.new(1, 0, 0)})
  863. slashpt2.Lifetime = 0.35
  864. slashpt2.LightEmission = 1
  865. slashpt2.Attachment0 = slashat2
  866. slashpt2.Attachment1 = slashat3
  867. slashpt2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.6, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)})
  868. local slashpt3 = Instance.new("Trail", slashp)
  869. slashpt3.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
  870. slashpt3.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.5, 0, 0), NumberSequenceKeypoint.new(1, 0, 0)})
  871. slashpt3.Lifetime = 0.35
  872. slashpt3.LightEmission = 1
  873. slashpt3.Attachment0 = slashat4
  874. slashpt3.Attachment1 = slashat5
  875. slashpt3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.6, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)})
  876. local slashbv = Instance.new("BodyVelocity", slashp)
  877. slashbv.Velocity = mou.Hit.lookVector * 180
  878. slashbv.MaxForce = Vector3.new(100000000000, 100000000000, 100000000000)
  879. game:GetService("Debris"):AddItem(slashp, 15)
  880. slashp.Touched:connect(function(hit)
  881. if shoot == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  882. shoot = false
  883. slashp:Destroy()
  884. local shootman = hit.Parent
  885. local shoottor = shootman:FindFirstChild("Torso") or shootman:FindFirstChild("UpperTorso")
  886. local shoothum = shootman:FindFirstChildOfClass("Humanoid")
  887. shoothum.Health = shoothum.Health - 15
  888. local ranPit = math.random(0.9, 1.4)
  889. if not shoottor:FindFirstChild("XDthxforthesoundtho") then
  890. local boom = Instance.new("Sound", shoottor)
  891. boom.SoundId = "rbxassetid://588734356"
  892. boom.Volume = 3
  893. boom.Pitch = ranPit
  894. boom.Name = "XDthxforthesoundtho"
  895. boom:Play()
  896. else
  897. local boom = shoottor:FindFirstChild("XDthxforthesoundtho")
  898. boom.Pitch = ranPit
  899. boom:Play()
  900. end
  901. for i = 1,15 do
  902. local ranAng2 = math.random(-360, 360)
  903. local scar2 = Instance.new("Part", char)
  904. scar2.Name = "scar"
  905. scar2.CanCollide = false
  906. scar2.Anchored = true
  907. scar2.Material = "Neon"
  908. scar2.BrickColor = BrickColor.new("New Yeller")
  909. scar2.Size = Vector3.new(0.1, 0.1, 0.1)
  910. local scarm2 = Instance.new("SpecialMesh", scar2)
  911. scarm2.MeshType = "Sphere"
  912. scarm2.Scale = Vector3.new(800, 1, 1)
  913. scar2.CFrame = shoottor.CFrame * CFa(Rad(ranAng2), Rad(ranAng2), Rad(ranAng2))
  914. local partprop3 = {Scale = Vector3.new(600, 40, 40)}
  915. local partprop4 = {Transparency = 1}
  916. local tween3 = tweenserv:Create(scarm2, tweeninfo, partprop3)
  917. local tween4 = tweenserv:Create(scar2, tweeninfo, partprop4)
  918. tween3:Play()
  919. tween4:Play()
  920. game:GetService("Debris"):AddItem(scar2, 0.5)
  921. local cutSparkle = Instance.new("Part", char)
  922. cutSparkle.Name = "cutSparkle2244"
  923. cutSparkle.CanCollide = false
  924. cutSparkle.Anchored = true
  925. cutSparkle.Material = "Neon"
  926. cutSparkle.BrickColor = BrickColor.new("New Yeller")
  927. cutSparkle.Size = Vector3.new(10, 10, 10)
  928. cutSparkle.CFrame = shoottor.CFrame
  929. local ranPos = math.random(-30, 30)
  930. local ranPos2 = math.random(-30, 30)
  931. local ranPos3 = math.random(-30, 30)
  932. local partprop5 = {CFrame = shoottor.CFrame * CFn(ranPos, ranPos2, ranPos3) * CFa(ranAng2, ranAng2, ranAng2); Size = Vector3.new(0.1, 0.1, 0.1)}
  933. local tween5 = tweenserv:Create(cutSparkle, tweeninfo, partprop5)
  934. tween5:Play()
  935. game:GetService("Debris"):AddItem(cutSparkle, 0.5)
  936. end
  937. elseif shoot == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  938. shoot = false
  939. slashp:Destroy()
  940. local shootman = hit.Parent.Parent
  941. local shoottor = shootman:FindFirstChild("Torso") or shootman:FindFirstChild("UpperTorso")
  942. local shoothum = shootman:FindFirstChildOfClass("Humanoid")
  943. shoothum.Health = shoothum.Health - 15
  944. local ranPit = math.random(0.9, 1.4)
  945. if not shoottor:FindFirstChild("XDthxforthesoundtho") then
  946. local boom = Instance.new("Sound", shoottor)
  947. boom.SoundId = "rbxassetid://588734356"
  948. boom.Volume = 3
  949. boom.Pitch = ranPit
  950. boom.Name = "XDthxforthesoundtho"
  951. boom:Play()
  952. else
  953. local boom = shoottor:FindFirstChild("XDthxforthesoundtho")
  954. boom.Pitch = ranPit
  955. boom:Play()
  956. end
  957. for i = 1,15 do
  958. local ranAng2 = math.random(-360, 360)
  959. local scar2 = Instance.new("Part", char)
  960. scar2.Name = "scar"
  961. scar2.CanCollide = false
  962. scar2.Anchored = true
  963. scar2.Material = "Neon"
  964. scar2.BrickColor = BrickColor.new("New Yeller")
  965. scar2.Size = Vector3.new(0.1, 0.1, 0.1)
  966. local scarm2 = Instance.new("SpecialMesh", scar2)
  967. scarm2.MeshType = "Sphere"
  968. scarm2.Scale = Vector3.new(800, 1, 1)
  969. scar2.CFrame = shoottor.CFrame * CFa(Rad(ranAng2), Rad(ranAng2), Rad(ranAng2))
  970. local partprop3 = {Scale = Vector3.new(600, 40, 40)}
  971. local partprop4 = {Transparency = 1}
  972. local tween3 = tweenserv:Create(scarm2, tweeninfo, partprop3)
  973. local tween4 = tweenserv:Create(scar2, tweeninfo, partprop4)
  974. tween3:Play()
  975. tween4:Play()
  976. game:GetService("Debris"):AddItem(scar2, 0.5)
  977. local cutSparkle = Instance.new("Part", char)
  978. cutSparkle.Name = "cutSparkle2244"
  979. cutSparkle.CanCollide = false
  980. cutSparkle.Anchored = true
  981. cutSparkle.Material = "Neon"
  982. cutSparkle.BrickColor = BrickColor.new("New Yeller")
  983. cutSparkle.Size = Vector3.new(10, 10, 10)
  984. cutSparkle.CFrame = shoottor.CFrame
  985. local ranPos = math.random(-30, 30)
  986. local ranPos2 = math.random(-30, 30)
  987. local ranPos3 = math.random(-30, 30)
  988. local partprop5 = {CFrame = shoottor.CFrame * CFn(ranPos, ranPos2, ranPos3) * CFa(ranAng2, ranAng2, ranAng2); Size = Vector3.new(0.1, 0.1, 0.1)}
  989. local tween5 = tweenserv:Create(cutSparkle, tweeninfo, partprop5)
  990. tween5:Play()
  991. game:GetService("Debris"):AddItem(cutSparkle, 0.5)
  992. end
  993. end
  994. end)
  995. for i = 0,1,.15 do
  996. hPw.C1 = clerp(hPw.C1, hPw1, i)
  997. hPw.C0 = clerp(hPw.C0, hPw0, i)
  998. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
  999. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-10), 0, Rad(50)), i)
  1000. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
  1001. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(60), Rad(-20), Rad(10)), i)
  1002. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(10)), i)
  1003. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
  1004. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  1005. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  1006. LS.C0 = clerp(LS.C0, LS0, i)
  1007. RS.C0 = clerp(RS.C0, RS0, i)
  1008. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  1009. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  1010. swait()
  1011. end
  1012. hum.WalkSpeed = nws
  1013. hum.JumpPower = jp
  1014. lSlashing = false
  1015. attacking = false
  1016. end
  1017. end
  1018.  
  1019. function SwordSlam()
  1020. if Slamming == false and attacking == false then
  1021. attacking = true
  1022. Slamming = true
  1023. hum.WalkSpeed = 0
  1024. hum.JumpPower = 0
  1025. for i = 0,1,.1 do
  1026. hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(-150), Rad(-35)), i)
  1027. hPw.C0 = clerp(hPw.C0, hPw0, i)
  1028. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(15), 0, Rad(-15)), i)
  1029. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(45), 0, 0), i)
  1030. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(130)), i)
  1031. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-130)), i)
  1032. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-45)), i)
  1033. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(45)), i)
  1034. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  1035. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  1036. LS.C0 = clerp(LS.C0, LS0, i)
  1037. RS.C0 = clerp(RS.C0, RS0, i)
  1038. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  1039. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  1040. swait()
  1041. end
  1042. if not bladeP:FindFirstChild("SLAMMM") then
  1043. local SPAM = Instance.new("Sound", bladeP)
  1044. SPAM.SoundId = "rbxassetid://1548538202"
  1045. SPAM.Name = "SLAMMM"
  1046. SPAM.Volume = 4
  1047. SPAM:Play()
  1048. else
  1049. local SPAM = bladeP:FindFirstChild("SLAMMM")
  1050. SPAM:Play()
  1051. end
  1052. for i = 1,30 do
  1053. local ranAng3 = math.random(-360, 360)
  1054. local ranAng4 = math.random(-360, 360)
  1055. local ranPos4 = math.random(-80, 80)
  1056. local ranPos5 = math.random(-80, 80)
  1057. local ranPos6 = math.random(-80, 80)
  1058. local ranPos7 = math.random(-80, 80)
  1059. local ranPos8 = math.random(-80, 80)
  1060. local ranPos9 = math.random(-80, 80)
  1061. local FIRE = Instance.new("Part", char)
  1062. FIRE.Material = "Neon"
  1063. FIRE.BrickColor = BrickColor.new("New Yeller")
  1064. FIRE.CanCollide = false
  1065. FIRE.Size = Vector3.new(30, 30, 30)
  1066. FIRE.Anchored = true
  1067. FIRE.CFrame = bladeP.CFrame
  1068. local FIRE2 = Instance.new("Part", char)
  1069. FIRE2.Material = "Neon"
  1070. FIRE2.BrickColor = BrickColor.new("New Yeller")
  1071. FIRE2.CanCollide = false
  1072. FIRE2.Anchored = true
  1073. FIRE2.CFrame = bladeP.CFrame
  1074. local FIREM = Instance.new("SpecialMesh", FIRE2)
  1075. FIREM.MeshType = "Sphere"
  1076. FIREM.Scale = Vector3.new(3, 1, 1)
  1077. local tweeninfo2 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0)
  1078. local partprop6 = {CFrame = bladeP.CFrame * CFn(ranPos4, ranPos5, ranPos6) * CFa(ranAng3, ranAng3, ranAng3); Size = Vector3.new(0.1, 0.1, 0.1)}
  1079. local partprop7 = {CFrame = bladeP.CFrame * CFn(ranPos7, ranPos8, ranPos9) * CFa(ranAng4, ranAng4, ranAng4); Transparency = 1}
  1080. local partprop8 = {Scale = Vector3.new(15, 5, 5)}
  1081. local tween6 = tweenserv:Create(FIRE, tweeninfo2, partprop6)
  1082. local tween7 = tweenserv:Create(FIRE2, tweeninfo2, partprop7)
  1083. local tween8 = tweenserv:Create(FIREM, tweeninfo2, partprop8)
  1084. tween6:Play()
  1085. tween7:Play()
  1086. tween8:Play()
  1087. game:GetService("Debris"):AddItem(FIRE, 1)
  1088. game:GetService("Debris"):AddItem(FIRE2, 1)
  1089. end
  1090. for i,v in pairs(GetTorsos(bladeP.Position, 35)) do
  1091. if v.Parent:FindFirstChildOfClass("Humanoid") then
  1092. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 35
  1093. end
  1094. end
  1095. for i = 0,1,.1 do
  1096. hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(-150), Rad(-35)), i)
  1097. hPw.C0 = clerp(hPw.C0, hPw0, i)
  1098. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-15)), i)
  1099. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 1, 0.1) * CFa(Rad(-40), 0, 0), i)
  1100. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(90)), i)
  1101. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-90)), i)
  1102. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.5, 0) * CFa(Rad(5), 0, Rad(-40)), i)
  1103. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.5, -0.5, 0) * CFa(Rad(5), 0, Rad(-40)), i)
  1104. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  1105. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
  1106. LS.C0 = clerp(LS.C0, LS0, i)
  1107. RS.C0 = clerp(RS.C0, RS0, i)
  1108. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
  1109. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
  1110. swait()
  1111. end
  1112. hum.WalkSpeed = nws
  1113. hum.JumpPower = jp
  1114. Slamming = false
  1115. attacking = false
  1116. end
  1117. end
  1118.  
  1119. function LockChar()
  1120. if mou.Target ~= nil and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
  1121. LOCKEDON = true
  1122. lockman = mou.Target.Parent
  1123. lockhead = lockman:FindFirstChild("Head")
  1124. locktor = lockman:FindFirstChild("Torso") or lockman:FindFirstChild("UpperTorso")
  1125. lockhum = lockman:FindFirstChildOfClass("Humanoid")
  1126. elseif mou.Target ~= nil and mou.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1127. LOCKEDON = true
  1128. lockman = mou.Target.Parent.Parent
  1129. lockhead = lockman:FindFirstChild("Head")
  1130. locktor = lockman:FindFirstChild("Torso") or lockman:FindFirstChild("UpperTorso")
  1131. lockhum = lockman:FindFirstChildOfClass("Humanoid")
  1132. elseif mou.Target ~= nil and not mou.Target.Parent:FindFirstChildOfClass("Humanoid") and LOCKEDON == true then
  1133. LOCKEDON = false
  1134. lockman = nil
  1135. lockhead = nil
  1136. locktor = nil
  1137. lockhum = nil
  1138. elseif mou.Target ~= nil and not mou.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") and LOCKEDON == true then
  1139. LOCKEDON = false
  1140. lockman = nil
  1141. lockhead = nil
  1142. locktor = nil
  1143. lockhum = nil
  1144. end
  1145. end
  1146.  
  1147. -----------------------------------------------------------------------------
  1148.  
  1149. function kdown(k)
  1150. if string.byte(k) == 50 and running == false then
  1151. running = true
  1152. nws = ws + 11
  1153. hum.WalkSpeed = nws
  1154. elseif string.byte(k) == 50 and running == true then
  1155. running = false
  1156. nws = ws
  1157. hum.WalkSpeed = nws
  1158. elseif k == "r" then
  1159. longSlash()
  1160. elseif k == "f" then
  1161. SwordSlam()
  1162. elseif k == "q" then
  1163. LockChar()
  1164. end
  1165. end
  1166.  
  1167. function lmdown()
  1168. Slash()
  1169. end
  1170.  
  1171. mou.KeyDown:connect(kdown)
  1172. mou.Button1Down:connect(lmdown)
  1173.  
  1174. -----------------------------------------------------------------------------
  1175.  
  1176. warn([[
  1177.  
  1178.  
  1179. oilsauce's Excalibur.
  1180. last updated: 2018/5/27, 12:56 JST.
  1181.  
  1182. this was already logged so here
  1183. ]])
  1184.  
  1185. -----------------------------------------------------------------------------
  1186.  
  1187. while true do
  1188. swait()
  1189. sine = sine + 1
  1190. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1191. local campos = head.CFrame.p + Vector3.new(0, 10, 0)
  1192. if Slashing == true then
  1193. state = "Slash"
  1194. trial.Enabled = true
  1195. elseif lSlashing == true then
  1196. state = "LongSlash"
  1197. trial.Enabled = true
  1198. elseif Slamming == true then
  1199. state = "Slam"
  1200. trial.Enabled = true
  1201. elseif 1 < root.Velocity.y then
  1202. state = "Jump"
  1203. trial.Enabled = false
  1204. elseif -1 > root.Velocity.y then
  1205. state = "Fall"
  1206. trial.Enabled = false
  1207. elseif torvel < 1 then
  1208. state = "Idle"
  1209. trial.Enabled = false
  1210. elseif tor.Velocity.magnitude < 50 and running == true then
  1211. state = "Run"
  1212. trial.Enabled = true
  1213. elseif tor.Velocity.magnitude < 50 and running == false then
  1214. state = "Walk"
  1215. trial.Enabled = false
  1216. end
  1217.  
  1218. if LOCKEDON == true then
  1219. root.CFrame = CFn(root.CFrame.p, Vector3.new(locktor.CFrame.x, root.CFrame.y, locktor.CFrame.z))
  1220. cam.CoordinateFrame = clerp(cam.CoordinateFrame, CFn(campos, locktor.CFrame.p), 0.15)
  1221. end
  1222.  
  1223. if state == "Jump" then
  1224. hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, -0.4, 0) * CFa(Rad(75), Rad(25), Rad(-90)), 0.15)
  1225. hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
  1226. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, 0), 0.15)
  1227. rootj.C1 = clerp(rootj.C1, rootj1, 0.15)
  1228. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, Rad(-10)), 0.15)
  1229. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, Rad(-65)), 0.15)
  1230. LH.C1 = clerp(LH.C1, LH1 * CFn(0.7, -1.3, -0.2) * CFa(Rad(-10), 0, Rad(-50)), 0.15)
  1231. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.5, -1.1, 0) * CFa(Rad(-5), 0, Rad(40)), 0.15)
  1232. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1233. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1234. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1235. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1236. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1237. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1238. elseif state == "Fall" then
  1239. hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, -0.4, 0) * CFa(Rad(60), Rad(25), Rad(-90)), 0.15)
  1240. hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
  1241. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
  1242. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
  1243. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(-10)), 0.15)
  1244. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, Rad(-50)), 0.15)
  1245. LH.C1 = clerp(LH.C1, LH1 * CFn(0.4, -0.7, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1246. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.2, -0.5, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1247. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1248. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1249. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1250. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1251. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1252. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1253. elseif state == "Idle" then
  1254. hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(10), Rad(-35)), 0.15)
  1255. hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
  1256. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5 * Cos(sine / 20)), 0, Rad(-15)), 0.15)
  1257. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-5 * Cos(sine / 15)), 0, Rad(15)), 0.15)
  1258. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(55)), 0.15)
  1259. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-55)), 0.15)
  1260. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1 * Cos(sine / 15), -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(-10), Rad(5 * Cos(sine / 15))), 0.15)
  1261. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1 * Cos(sine / 15), -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(-15), Rad(-5 * Cos(sine / 15))), 0.15)
  1262. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
  1263. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), 0.15)
  1264. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1265. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1266. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), 0.15)
  1267. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), 0.15)
  1268. elseif state == "Run" then
  1269. hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, 0, -0.3) * CFa(0, Rad(-85), 0), 0.15)
  1270. hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
  1271. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
  1272. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-5 * Cos(sine / 1.5)), 0, Rad(5 * Cos(sine / 3))), 0.15)
  1273. LS.C1 = clerp(LS.C1, LS1 * CFn(-0.2 * Cos(sine / 3), -0.1 * Cos(sine / 6), 0) * CFa(Rad(10), 0, Rad(-110 * Cos(sine / 3))), 0.15)
  1274. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.3, -0.1 * Cos(sine / 6)) * CFa(Rad(90), 0, 0), 0.15)
  1275. LH.C1 = clerp(LH.C1, LH1 * CFn(0.4 * Cos(sine / 3), -0.4 * Cos(sine / 3), 0) * CFa(0, 0, Rad(120 * Cos(sine / 3))), 0.15)
  1276. RH.C1 = clerp(RH.C1, RH1 * CFn(0.4 * Cos(sine / 3), 0.4 * Cos(sine / 3), 0) * CFa(0, 0, Rad(120 * Cos(sine / 3))), 0.15)
  1277. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1278. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(15), 0, 0), 0.15)
  1279. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1280. RS.C0 = clerp(RS.C0, RS0 * CFn(0, -0.2, 0), 0.15)
  1281. LH.C0 = clerp(LH.C0, LH0 * CFn(-0.3, 0, 0) * CFa(0, 0, Rad(15)), 0.15)
  1282. RH.C0 = clerp(RH.C0, RH0 * CFn(0.3, 0, 0) * CFa(0, 0, Rad(-15)), 0.15)
  1283. elseif state == "Walk" then
  1284. hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, -0.4, 0) * CFa(Rad(75), Rad(25), Rad(-90)), 0.15)
  1285. hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
  1286. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
  1287. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-5), 0, Rad(5 * Cos(sine / 6))), 0.15)
  1288. LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Cos(sine / 6))), 0.15)
  1289. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, Rad(-65)), 0.15)
  1290. LH.C1 = clerp(LH.C1, LH1 * CFa(0, 0, Rad(50 * Cos(sine / 6))), 0.15)
  1291. RH.C1 = clerp(RH.C1, RH1 * CFa(0, 0, Rad(50 * Cos(sine / 6))), 0.15)
  1292. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1293. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1294. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1295. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1296. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1297. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1298. end
  1299. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement