Advertisement
Axelpuff

Excalibur FE

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