Advertisement
EdgyHedgehog

...

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