Advertisement
voidman

Untitled

Dec 27th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.36 KB | None | 0 0
  1. --]]
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  7. -- Dekagren Sword --
  8. -- Made by Immunidon [NOT THE SCRIPT] --
  9. -- Local Script --
  10.  
  11.  
  12. Player = game:GetService("Players").LocalPlayer
  13. local unlocks = Instance.new("StringValue")
  14. unlocks.Name = "Unlocks"
  15. unlocks.Parent = Player
  16. Character = Player.Character
  17. PlayerGui = Player.PlayerGui
  18. Backpack = Player.Backpack
  19. Torso = Character.Torso
  20. Head = Character.Head
  21. LeftArm = Character["Left Arm"]
  22. LeftLeg = Character["Left Leg"]
  23. RightArm = Character["Right Arm"]
  24. RightLeg = Character["Right Leg"]
  25. LS = Torso["Left Shoulder"]
  26. LH = Torso["Left Hip"]
  27. RS = Torso["Right Shoulder"]
  28. RH = Torso["Right Hip"]
  29. ModelName = "Weapon"
  30. attack = false
  31. attacktype = 1
  32. Hitdeb = 0
  33. Neck = Torso.Neck
  34. local neckcf0 = Neck.C0
  35. ----------------------------
  36. --Customize
  37. Rage = 999999999999999999
  38. MaxRage = 999999999999999999
  39. mindamage = 30
  40. maxdamage = 40
  41. crtmaxdamage = 50
  42. omindamage = mindamage
  43. omaxdamage = maxdamage
  44. ocrtmaxdamage = crtmaxdamage
  45. crtrate = 100/5
  46. --100%/critpercentage
  47. blockpower = 4
  48. oblkbrkr = 3
  49. blkbrkr = 3
  50. blockbreaker = oblkbrkr
  51. if (string.match(Player.Unlocks.Value,"Dekagren Walkspeed+") ~= nil) then
  52. ws = 13
  53. else
  54. ws = 16
  55. end
  56. if (string.match(Player.Unlocks.Value,"Dekagren Charge") ~= nil) then
  57. if (string.match(Player.Unlocks.Value,"Dekagren MoreCharge") ~= nil) then
  58. maxCharge = 5
  59. else
  60. maxCharge = 3
  61. end
  62. else
  63. maxCharge = 0
  64. end
  65. handlecolor = BrickColor.new("Silver")
  66. bcolor = BrickColor.new("White")
  67. gemcolor = BrickColor.new("Gold")
  68. ToolName = "Dekagren"
  69. ---------------------------------------------------------------------------------------------------------------------------------------
  70. if Character:findFirstChild("EquippedVal",true) ~= nil then
  71. Character:findFirstChild("EquippedVal",true).Parent = nil
  72. end
  73. Character.Humanoid.WalkSpeed = ws
  74. ev = Instance.new("BoolValue",Character)
  75. ev.Name = "EquippedVal"
  76. ev.Value = false
  77. if Character:findFirstChild("Block",true) ~= nil then
  78. Character:findFirstChild("Block",true).Parent = nil
  79. end
  80. blk = Instance.new("BoolValue",Character)
  81. blk.Name = "Block"
  82. blk.Value = false
  83. blkc = Instance.new("IntValue",blk)
  84. blkc.Name = "BlockPower"
  85. blkc.Value = blockpower
  86. --player
  87. player = nil
  88. --welds
  89. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  90. --what anim
  91. anim = "none"
  92. --other var
  93. player = Player
  94. ch = Character
  95. --save shoulders
  96. AoETrue = {}
  97. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  98. function RWFunc()
  99. RW.Part1 = ch["Right Arm"]
  100. RSH.Part1 = nil
  101. end
  102. function LWFunc()
  103. LW.Part1 = ch["Left Arm"]
  104. LSH.Part1 = nil
  105. end
  106. function RWLFunc()
  107. RWL.Part1 = ch["Right Leg"]
  108. RHL.Part1 = nil
  109. ch["Right Leg"].Name = "RightLeg"
  110. RightLeg.CanCollide = false
  111. end
  112. function LWLFunc()
  113. LWL.Part1 = ch["Left Leg"]
  114. LHL.Part1 = nil
  115. ch["Left Leg"].Name = "LeftLeg"
  116. LeftLeg.CanCollide = true
  117. end
  118. function RWLRem()
  119. RightLeg.Name = "Right Leg"
  120. RWL.Part1 = nil
  121. RHL.Part1 = ch["Right Leg"]
  122. RightLeg.CanCollide = false
  123. end
  124. function LWLRem()
  125. LeftLeg.Name = "Left Leg"
  126. LWL.Part1 = nil
  127. LHL.Part1 = ch["Left Leg"]
  128. LeftLeg.CanCollide = false
  129. end
  130. function RWRem()
  131. RW.Part1 = nil
  132. RSH.Part1 = ch["Right Arm"]
  133. end
  134. function LWRem()
  135. LW.Part1 = nil
  136. LSH.Part1 = ch["Left Arm"]
  137. end
  138. if Character:findFirstChild(ModelName,true) ~= nil then
  139. Character:findFirstChild(ModelName,true).Parent = nil
  140. RHL.Part1 = ch["Right Leg"]
  141. LHL.Part1 = ch["Left Leg"]
  142. RSH.Part1 = ch["Right Arm"]
  143. LSH.Part1 = ch["Left Arm"]
  144. end
  145. local swordholder = Instance.new("Model")
  146. swordholder.Name = ModelName
  147. swordholder.Parent = Character
  148. --derp
  149. RW.Part0 = ch.Torso
  150. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  151. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  152. RW.Parent = swordholder
  153. --
  154. LW.Part0 = ch.Torso
  155. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  156. LW.C1 = CFrame.new(0, 0.5, 0)
  157. LW.Parent = swordholder
  158. --
  159. RWL.Part0 = ch.Torso
  160. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  161. RWL.C1 = CFrame.new(0.5, 1, 0)
  162. RWL.Parent = swordholder
  163. --
  164. LWL.Part0 = ch.Torso
  165. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  166. LWL.C1 = CFrame.new(-0.5, 1, 0)
  167. LWL.Parent = swordholder
  168. local msh1 = Instance.new("BlockMesh")
  169. msh1.Scale = Vector3.new(1,1,1)
  170. local msh2 = Instance.new("BlockMesh")
  171. msh2.Scale = Vector3.new(1,1,1)
  172. local msh3 = Instance.new("BlockMesh")
  173. msh3.Scale = Vector3.new(1,0.8,1)
  174. msh3.Offset = Vector3.new(0,0.5,0)
  175. local msh4 = Instance.new("SpecialMesh")
  176. msh4.Scale = Vector3.new(1,1,1)
  177. msh4.MeshType = "Wedge"
  178. local msh5 = Instance.new("SpecialMesh")
  179. msh5.Scale = Vector3.new(1,1,1)
  180. msh5.MeshType = "Wedge"
  181. local msh6 = Instance.new("BlockMesh")
  182. msh6.Scale = Vector3.new(1,1,1)
  183. local msh7 = Instance.new("BlockMesh")
  184. msh7.Scale = Vector3.new(1,1,1)
  185. local msh8 = Instance.new("SpecialMesh")
  186. msh8.Scale = Vector3.new(1,1,2.7)*0.75
  187. msh8.MeshId = "http://www.roblox.com/asset/?id=3270017"
  188. local msh9 = Instance.new("SpecialMesh")
  189. msh9.Scale = Vector3.new(1,1,1)*0.5
  190. msh9.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  191. local msh10 = Instance.new("BlockMesh")
  192. msh10.Scale = Vector3.new(1,1,1)
  193. local msh11 = Instance.new("BlockMesh")
  194. msh11.Scale = Vector3.new(1,1,1)
  195. local prt1 = Instance.new("Part")
  196. prt1.formFactor = 3
  197. prt1.CanCollide = false
  198. prt1.Name = "Handle"
  199. prt1.Locked = true
  200. prt1.Size = Vector3.new(0.3,2.5,0.3)
  201. prt1.Parent = swordholder
  202. msh1.Parent = prt1
  203. prt1.BrickColor = handlecolor
  204. local prt2 = Instance.new("Part")
  205. prt2.formFactor = 3
  206. prt2.CanCollide = false
  207. prt2.Name = "Handle2"
  208. prt2.Locked = true
  209. prt2.Size = Vector3.new(2,0.2,0.5)
  210. prt2.Parent = swordholder
  211. msh2.Parent = prt2
  212. prt2.BrickColor = handlecolor
  213. local prt3 = Instance.new("Part")
  214. prt3.formFactor = 3
  215. prt3.CanCollide = false
  216. prt3.Name = "Blade"
  217. prt3.Locked = true
  218. prt3.Size = Vector3.new(1.5,6,0.2)
  219. prt3.Parent = swordholder
  220. msh3.Parent = prt3
  221. prt3.BrickColor = bcolor
  222. local prt4 = Instance.new("Part")
  223. prt4.formFactor = 3
  224. prt4.CanCollide = false
  225. prt4.Name = "BladeTip1"
  226. prt4.Locked = true
  227. prt4.Size = Vector3.new(0.2,1.2,0.75)
  228. prt4.Parent = swordholder
  229. msh4.Parent = prt4
  230. prt4.BrickColor = bcolor
  231. local prt5 = Instance.new("Part")
  232. prt5.formFactor = 3
  233. prt5.CanCollide = false
  234. prt5.Name = "BladeTip2"
  235. prt5.Locked = true
  236. prt5.Size = Vector3.new(0.2,1.2,0.75)
  237. prt5.Parent = swordholder
  238. msh5.Parent = prt5
  239. prt5.BrickColor = bcolor
  240. local prt6 = Instance.new("Part")
  241. prt6.formFactor = 3
  242. prt6.CanCollide = false
  243. prt6.Name = "HandleP"
  244. prt6.Locked = true
  245. prt6.Size = Vector3.new(0.5,0.2,0.5)
  246. prt6.Parent = swordholder
  247. msh6.Parent = prt6
  248. prt6.BrickColor = gemcolor
  249. local prt7 = Instance.new("Part")
  250. prt7.formFactor = 3
  251. prt7.CanCollide = false
  252. prt7.Name = "HandleP"
  253. prt7.Locked = true
  254. prt7.Size = Vector3.new(0.5,0.2,0.5)
  255. prt7.Parent = swordholder
  256. msh7.Parent = prt7
  257. prt7.BrickColor = gemcolor
  258. local prt8 = Instance.new("Part")
  259. prt8.formFactor = 3
  260. prt8.CanCollide = false
  261. prt8.Name = "HandleP"
  262. prt8.Locked = true
  263. prt8.Size = Vector3.new(0.2,0.2,0.2)
  264. prt8.Parent = swordholder
  265. msh8.Parent = prt8
  266. prt8.BrickColor = handlecolor
  267. local prt9 = Instance.new("Part")
  268. prt9.formFactor = 3
  269. prt9.CanCollide = false
  270. prt9.Name = "HandleP"
  271. prt9.Locked = true
  272. prt9.Size = Vector3.new(0.2,0.2,0.2)
  273. prt9.Parent = swordholder
  274. msh9.Parent = prt9
  275. prt9.BrickColor = gemcolor
  276. local prt10 = Instance.new("Part")
  277. prt10.formFactor = 3
  278. prt10.CanCollide = false
  279. prt10.Name = "BladeP"
  280. prt10.Locked = true
  281. prt10.Size = Vector3.new(0.2,4,0.205)
  282. prt10.Parent = swordholder
  283. msh10.Parent = prt10
  284. prt10.BrickColor = gemcolor
  285. local prt11 = Instance.new("Part")
  286. prt11.formFactor = 3
  287. prt11.CanCollide = false
  288. prt11.Name = "BladeP"
  289. prt11.Locked = true
  290. prt11.Size = Vector3.new(0.2,4,0.205)
  291. prt11.Parent = swordholder
  292. msh11.Parent = prt11
  293. prt11.BrickColor = gemcolor
  294. local w1 = Instance.new("Weld")
  295. w1.Parent = prt1
  296. w1.Part0 = prt1
  297. local w2 = Instance.new("Weld")
  298. w2.Parent = prt2
  299. w2.Part0 = prt2
  300. w2.Part1 = prt1
  301. w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  302. w2.C0 = CFrame.new(0, 1.25,0) * CFrame.Angles(0, 0, 0)
  303. local w3 = Instance.new("Weld")
  304. w3.Parent = prt3
  305. w3.Part0 = prt3
  306. w3.Part1 = prt1
  307. w3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  308. w3.C0 = CFrame.new(0, 4.25,0) * CFrame.Angles(0, 0, 0)
  309. local w4 = Instance.new("Weld")
  310. w4.Parent = prt4
  311. w4.Part0 = prt4
  312. w4.Part1 = prt1
  313. w4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  314. w4.C0 = CFrame.new(0, -6.75,0.375) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(180))
  315. local w5 = Instance.new("Weld")
  316. w5.Parent = prt5
  317. w5.Part0 = prt5
  318. w5.Part1 = prt1
  319. w5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  320. w5.C0 = CFrame.new(0, -6.75,0.375) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(180))
  321. local w6 = Instance.new("Weld")
  322. w6.Parent = prt6
  323. w6.Part0 = prt6
  324. w6.Part1 = prt1
  325. w6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  326. w6.C0 = CFrame.new(0, 1.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  327. local w7 = Instance.new("Weld")
  328. w7.Parent = prt7
  329. w7.Part0 = prt7
  330. w7.Part1 = prt1
  331. w7.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  332. w7.C0 = CFrame.new(0, -0.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  333. local w8 = Instance.new("Weld")
  334. w8.Parent = prt8
  335. w8.Part0 = prt8
  336. w8.Part1 = prt1
  337. w8.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  338. w8.C0 = CFrame.new(0, -1.25,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))local w8 = Instance.new("Weld")
  339. local w9 = Instance.new("Weld")
  340. w9.Parent = prt9
  341. w9.Part0 = prt9
  342. w9.Part1 = prt1
  343. w9.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  344. w9.C0 = CFrame.new(0, -1.25,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  345. local w10 = Instance.new("Weld")
  346. w10.Parent = prt10
  347. w10.Part0 = prt10
  348. w10.Part1 = prt1
  349. w10.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  350. w10.C0 = CFrame.new(0.5, 3.25,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  351. local w11 = Instance.new("Weld")
  352. w11.Parent = prt11
  353. w11.Part0 = prt11
  354. w11.Part1 = prt1
  355. w11.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  356. w11.C0 = CFrame.new(-0.5, 3.25,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  357.  
  358. local RAP = Instance.new("Part")
  359. RAP.formFactor = 0
  360. RAP.CanCollide = false
  361. RAP.Name = "RAPart"
  362. RAP.Locked = true
  363. RAP.Size = Vector3.new(1,1,1)
  364. RAP.Parent = swordholder
  365. RAP.Transparency = 1
  366. local w = Instance.new("Weld")
  367. w.Parent = RAP
  368. w.Part0 = RAP
  369. w.Part1 = RightArm
  370. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  371. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  372. function unequipweld()
  373. w1.Part1 = Torso
  374. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
  375. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180), math.rad(35)) * CFrame.new(-1.65, -2.75, -0.6)
  376. end
  377.  
  378. unequipweld()
  379. function equipweld()
  380. w1.Part1 = RAP
  381. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  382. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  383. end
  384. function ss(parent,p) --Slash
  385. local SlashSound = Instance.new("Sound")
  386. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  387. SlashSound.Parent = parent
  388. SlashSound.Volume = .7
  389. SlashSound.Pitch = p
  390. SlashSound.PlayOnRemove = true
  391. coroutine.resume(coroutine.create(function()
  392. wait()
  393. SlashSound.Parent = nil
  394. end))
  395. end
  396. function uss(parent,p) --unsheath
  397. local SlashSound = Instance.new("Sound")
  398. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  399. SlashSound.Parent = parent
  400. SlashSound.Volume = .7
  401. SlashSound.Pitch = p
  402. SlashSound.PlayOnRemove = true
  403. coroutine.resume(coroutine.create(function()
  404. wait()
  405. SlashSound.Parent = nil
  406. end))
  407. end
  408. function cs(parent,p) --Magic Charge
  409. local SlashSound = Instance.new("Sound")
  410. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  411. SlashSound.Parent = parent
  412. SlashSound.Volume = .7
  413. SlashSound.Pitch = p
  414. SlashSound.PlayOnRemove = true
  415. coroutine.resume(coroutine.create(function()
  416. wait()
  417. SlashSound.Parent = nil
  418. end))
  419. return SlashSound
  420. end
  421. function ls(parent,p) --Lazer Sound
  422. local SlashSound = Instance.new("Sound")
  423. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  424. SlashSound.Parent = parent
  425. SlashSound.Volume = .7
  426. SlashSound.Pitch = p
  427. SlashSound.PlayOnRemove = true
  428. coroutine.resume(coroutine.create(function()
  429. wait()
  430. SlashSound.Parent = nil
  431. end))
  432. end
  433. function ts(parent,p)
  434. local SlashSound = Instance.new("Sound")
  435. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222030"
  436. SlashSound.Parent = parent
  437. SlashSound.Volume = .7
  438. SlashSound.Pitch = p
  439. SlashSound.PlayOnRemove = true
  440. coroutine.resume(coroutine.create(function()
  441. wait()
  442. SlashSound.Parent = nil
  443. end))
  444. end
  445. function fs(parent,p) --Fire Sound
  446. local SlashSound = Instance.new("Sound")
  447. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  448. SlashSound.Parent = parent
  449. SlashSound.Volume = .7
  450. SlashSound.Pitch = p
  451. SlashSound.PlayOnRemove = true
  452. coroutine.resume(coroutine.create(function()
  453. wait()
  454. SlashSound.Parent = nil
  455. end))
  456. end
  457. function ms(parent,p) --Metal Cling Sound
  458. local SlashSound = Instance.new("Sound")
  459. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  460. SlashSound.Parent = parent
  461. SlashSound.Volume = 1
  462. SlashSound.Pitch = p
  463. SlashSound.PlayOnRemove = true
  464. coroutine.resume(coroutine.create(function()
  465. wait()
  466. SlashSound.Parent = nil
  467. end))
  468. end
  469. function bs(parent,p) --Berserk Sound
  470. local SlashSound = Instance.new("Sound")
  471. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2676305"
  472. SlashSound.Parent = parent
  473. SlashSound.Volume = 1
  474. SlashSound.Pitch = p
  475. SlashSound.PlayOnRemove = true
  476. coroutine.resume(coroutine.create(function()
  477. wait()
  478. SlashSound.Parent = nil
  479. end))
  480. end
  481. function es(parent,p) --Earth Sound
  482. local SlashSound = Instance.new("Sound")
  483. SlashSound.SoundId = "rbxasset://sounds\\stone3.ogg"
  484. SlashSound.Parent = parent
  485. SlashSound.Volume = 1
  486. SlashSound.Pitch = p
  487. SlashSound.PlayOnRemove = true
  488. coroutine.resume(coroutine.create(function()
  489. wait()
  490. SlashSound.Parent = nil
  491. end))
  492. end
  493. --
  494. function returndmg()
  495. mindamage = omindamage
  496. maxdamage = omaxdamage
  497. crtmaxdamage = ocrtmaxdamage
  498. end
  499. function subdmg(sub)
  500. mindamage = omindamage - sub
  501. maxdamage = omaxdamage - sub
  502. crtmaxdamage = ocrtmaxdamage - sub
  503. end
  504. function prcntdmg(sub)
  505. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  506. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  507. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  508. end
  509. function tagHumanoid(humanoid, player)
  510. local creator_tag = Instance.new("ObjectValue")
  511. creator_tag.Value = player
  512. creator_tag.Name = "creator"
  513. creator_tag.Parent = humanoid
  514. end
  515. function untagHumanoid(humanoid)
  516. if humanoid ~= nil then
  517. local tag = humanoid:findFirstChild("creator")
  518. if tag ~= nil then
  519. tag.Parent = nil
  520. end
  521. end
  522. end
  523. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  524. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  525. end
  526. function hideanim()
  527. attack = true
  528. for i = 0 , 1 , 0.2 do
  529. wait()
  530. RW.C0 = CFrame.new(1+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(30+90*i),math.rad(-45+45*i),math.rad(-20+10*i))
  531. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  532. LW.C0 = CFrame.new(-1+0.75*i, 0.5*i, -0.5-0.5*i) * CFrame.Angles(math.rad(45+45*i),math.rad(0),math.rad(45+25*i))
  533. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  534. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  535. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-30*i),0,math.rad(-20*i))
  536. end
  537. for i = 0 , 1 , 0.15 do
  538. wait()
  539. RW.C0 = CFrame.new(1.5, 0.5+0.5*i, -0.5+0.5*i) * CFrame.Angles(math.rad(120+90*i),math.rad(90*i),math.rad(10-10*i))
  540. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-10*i), 0, 0)
  541. LW.C0 = CFrame.new(-0.25+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(70+30*i))
  542. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45*i), 0, 0)
  543. w1.C0 = CFrame.Angles(math.rad(-90-45*i), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, -0.5)
  544. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-30-10*i),0,math.rad(-20-20*i))
  545. end
  546. unequipweld()
  547. for i = 0 , 1 , 0.1 do
  548. wait()
  549. RW.C0 = CFrame.new(1.5, 1-0.5*i, 0) * CFrame.Angles(math.rad(210-210*i),math.rad(90-90*i),math.rad(0))
  550. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-10+10*i), 0, 0)
  551. LW.C0 = CFrame.new(0.25-1.75*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90-90*i),math.rad(0),math.rad(100-100*i))
  552. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45+45*i), 0, 0)
  553. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-40+40*i),0,math.rad(-40+40*i))
  554. end
  555. LWRem()
  556. RWRem()
  557. attack = false
  558. end
  559. function equipanim()
  560. attack = true
  561. RWFunc()
  562. for i = 0, 1 , 0.1 do
  563. wait()
  564. RW.C0 = CFrame.new(1.5, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(200*i),math.rad(90*i),0)
  565. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-10*i), 0, 0)
  566. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),0)
  567. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  568. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-30*i),0,math.rad(-20*i))
  569. end
  570. equipweld()
  571. w1.C0 = CFrame.Angles(math.rad(-135), math.rad(0), math.rad(90-45)) * CFrame.new(0, 0, -0.5)
  572. LWFunc()
  573. uss(Head,1)
  574. for i = 0, 1 , 0.2 do
  575. wait()
  576. RW.C0 = CFrame.new(1.5, 1-0.5*i, 0) * CFrame.Angles(math.rad(200-90*i),math.rad(90-90*i),math.rad(20*i))
  577. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-10+10*i), 0, 0)
  578. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(22.5*i),math.rad(0),math.rad(22.5*i))
  579. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  580. w1.C0 = CFrame.Angles(math.rad(-135+45*i), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, -0.5)
  581. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-30+10*i),0,math.rad(-20-10*i))
  582. end
  583. for i = 0, 1 , 0.15 do
  584. wait()
  585. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(110-90*i),math.rad(-45*i),math.rad(20-40*i))
  586. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  587. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5-0.5*i, -0.5*i) * CFrame.Angles(math.rad(22.5+22.5*i),math.rad(0),math.rad(22.5+22.5*i))
  588. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  589. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  590. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-20+40*i),0,math.rad(-30+30*i))
  591. end
  592. for i = 0, 1 , 0.2 do
  593. wait()
  594. RW.C0 = CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(20-20*i),math.rad(-45),math.rad(-20))
  595. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  596. LW.C0 = CFrame.new(-1, 0, -0.5) * CFrame.Angles(math.rad(45-20*i),math.rad(0),math.rad(45))
  597. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  598. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  599. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(20+5*i),0,math.rad(0))
  600. end
  601. for i = 0, 1 , 0.1 do
  602. wait()
  603. RW.C0 = CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(30*i),math.rad(-45),math.rad(-20))
  604. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  605. LW.C0 = CFrame.new(-1, 0, -0.5) * CFrame.Angles(math.rad(25+20*i),math.rad(0),math.rad(45))
  606. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  607. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  608. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(25-25*i),0,math.rad(0))
  609. end
  610. Neck.C0 = neckcf0
  611. attack = false
  612. end
  613. if (script.Parent.className ~= "HopperBin") then
  614. Tool = Instance.new("HopperBin")
  615. Tool.Parent = Backpack
  616. Tool.Name = ToolName
  617. script.Parent = Tool
  618. end
  619. Bin = script.Parent
  620. function damagesplat(dmg,hit,crit,blocked)
  621. local mo = Instance.new("Model")
  622. mo.Name = dmg
  623. local pa = Instance.new("Part",mo)
  624. pa.formFactor = 3
  625. pa.Size = Vector3.new(0.8,0.3,0.8)
  626. if crit then
  627. pa.BrickColor = BrickColor.new("Bright yellow")
  628. elseif not crit then
  629. pa.BrickColor = BrickColor.new("Bright red")
  630. end
  631. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  632. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  633. pa.Name = "Head"
  634. local hah = Instance.new("Humanoid")
  635. hah.Parent = mo
  636. hah.MaxHealth = 0
  637. hah.Health = 0
  638. local bp = Instance.new("BodyPosition")
  639. bp.P = 14000
  640. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  641. bp.position = hit.Position + Vector3.new(0, 5, 0)
  642. coroutine.resume(coroutine.create(function()
  643. wait()
  644. mo.Parent = workspace
  645. bp.Parent = pa
  646. wait(1.4)
  647. mo:remove()
  648. end))
  649. end
  650. function damage(hum,dmg,critornot)
  651. damagesplat(dmg,hum.Torso,critornot)
  652. hum:TakeDamage(dmg)
  653. coroutine.resume(coroutine.create(function()
  654. tagHumanoid(hum,Player)
  655. wait(1)
  656. untagHumanoid(hum)
  657. end))
  658. end
  659. function AddRage(add)
  660. Rage = Rage + add
  661. if Rage > MaxRage then
  662. Rage = MaxRage
  663. end
  664. end
  665. function OT(hit) --Normal Damage
  666. if Hitdeb == 1 then return end
  667. if hit.Parent == nil then return end
  668. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  669. if hum.Health <= 0 then return end
  670. if hit.Parent:findFirstChild("Block") ~= nil then
  671. if hit.Parent.Block.Value then
  672. damagesplat(0,hum.Torso,false,true)
  673. AddRage(5)
  674. Hitdeb = 1
  675. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  676. if hit.Parent.Block.BlockPower.Value <= 1 then
  677. hit.Parent.Block.Value = false
  678. elseif hit.Parent.Block.BlockPower.Value > 1 then
  679. local critrandomizer = math.random(crtrate)
  680. if critrandomizer ~= 1 then
  681. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  682. elseif critrandomizer == 1 then
  683. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  684. end
  685. end
  686. end
  687. return end end
  688. local critrandomizer = math.random(crtrate)
  689. if critrandomizer ~= 1 then
  690. local rndmdamage = math.random(mindamage,maxdamage)
  691. damage(hum,rndmdamage,false)
  692. AddRage(rndmdamage/2)
  693. elseif critrandomizer == 1 then
  694. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  695. damage(hum,rndmdamage,true)
  696. AddRage(rndmdamage/2)
  697. end
  698. Hitdeb = 1
  699. end
  700. end
  701. function OT2(hit) --Bash Damage
  702. if Hitdeb == 1 then return end
  703. if hit.Parent == nil then return end
  704. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  705. if hum.Health <= 0 then return end
  706. local vel = Instance.new("BodyVelocity",hum.Torso)
  707. vel.maxForce = Vector3.new(1,1,1) * math.huge
  708. vel.P = vel.P * 2
  709. vel.velocity = Vector3.new(0,2,0) + CFrame.new(prt2.Position,hum.Torso.Position).lookVector * 75
  710. coroutine.resume(coroutine.create(function()
  711. wait(0.1)
  712. vel.Parent=nil
  713. end))
  714. if hit.Parent:findFirstChild("Block") ~= nil then
  715. if hit.Parent.Block.Value then
  716. damagesplat(0,hum.Torso,false,true)
  717. AddRage(5)
  718. Hitdeb = 1
  719. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  720. if hit.Parent.Block.BlockPower.Value <= 1 then
  721. hit.Parent.Block.Value = false
  722. elseif hit.Parent.Block.BlockPower.Value > 1 then
  723. local critrandomizer = math.random(crtrate)
  724. if critrandomizer ~= 1 then
  725. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  726. elseif critrandomizer == 1 then
  727. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  728. end
  729. end
  730. end
  731. return end end
  732. local critrandomizer = math.random(crtrate)
  733. if critrandomizer ~= 1 then
  734. local rndmdamage = math.random(mindamage,maxdamage)
  735. damage(hum,rndmdamage,false)
  736. AddRage(rndmdamage/2)
  737. elseif critrandomizer == 1 then
  738. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  739. damage(hum,rndmdamage,true)
  740. AddRage(rndmdamage/2)
  741. end
  742. Hitdeb = 1
  743. end
  744. end
  745. function OTNR(hit) --No rage Damage
  746. if Hitdeb == 1 then return end
  747. if hit.Parent == nil then return end
  748. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  749. if hit.Parent:findFirstChild("Block") ~= nil then
  750. if hit.Parent.Block.Value then
  751. damagesplat(0,hum.Torso,false,true)
  752. AddRage(5)
  753. Hitdeb = 1
  754. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  755. if hit.Parent.Block.BlockPower.Value <= 1 then
  756. hit.Parent.Block.Value = false
  757. elseif hit.Parent.Block.BlockPower.Value > 1 then
  758. local critrandomizer = math.random(crtrate)
  759. if critrandomizer ~= 1 then
  760. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  761. elseif critrandomizer == 1 then
  762. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  763. end
  764. end
  765. end
  766. return end end
  767. local critrandomizer = math.random(crtrate)
  768. if critrandomizer ~= 1 then
  769. local rndmdamage = math.random(mindamage,maxdamage)
  770. damage(hum,rndmdamage,false)
  771. elseif critrandomizer == 1 then
  772. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  773. damage(hum,rndmdamage,true)
  774. end
  775. Hitdeb = 1
  776. end
  777. end
  778. function AoE(p,magnitude)
  779. local c = game.Workspace:GetChildren();
  780. for i = 1, #c do
  781. local hum = c[i]:findFirstChild("Humanoid")
  782. if hum ~= nil and hum.Health ~= 0 then
  783. local head = c[i]:findFirstChild("Head");
  784. if head ~= nil then
  785. local mag = (head.Position - p).magnitude;
  786. if mag <= magnitude and c[i].Name ~= Character.Name then
  787. local foundd = false
  788. for ii = 1 , #AoETrue do
  789. if AoETrue[ii] == c[i].Name then
  790. foundd = true
  791. end
  792. end
  793. if foundd then
  794. end
  795. --
  796. if not foundd then
  797. local critrandomizer = math.random(crtrate)
  798. if critrandomizer ~= 1 then
  799. local rndmdamage = math.random(mindamage,maxdamage) + bonusdmg
  800. damage(hum,rndmdamage,false)
  801. elseif critrandomizer == 1 then
  802. local rndmdamage = math.random(maxdamage,crtmaxdamage) + bonusdmg
  803. damage(hum,rndmdamage,true)
  804. end
  805. table.insert(AoETrue,c[i].Name)
  806. end
  807. end
  808. end
  809. end
  810. end
  811. for ii = 1 , #AoETrue do
  812. table.remove(AoETrue,#AoETrue)
  813. end
  814. end
  815. --
  816. --
  817. function effect(Color,Ref,LP,P1)
  818. local effectsmsh = Instance.new("BlockMesh")
  819. effectsmsh.Scale = Vector3.new(1,1,1)
  820. effectsmsh.Name = "Mesh"
  821. local effectsg = Instance.new("Part")
  822. effectsg.formFactor = 3
  823. effectsg.CanCollide = false
  824. effectsg.Name = "Eff"
  825. effectsg.Locked = true
  826. effectsg.Anchored = true
  827. effectsg.Size = Vector3.new(0.2,1,0.2)
  828. effectsg.Parent = swordholder
  829. effectsmsh.Parent = effectsg
  830. effectsg.BrickColor = BrickColor.new(Color)
  831. effectsg.Reflectance = Ref
  832. local point1 = P1
  833. local mg = (LP.p - point1.p).magnitude
  834. effectsg.Size = Vector3.new(0.2,mg,0.2)
  835. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  836. coroutine.resume(coroutine.create(function()
  837. for i = 0 , 1 , 0.1 do
  838. wait()
  839. effectsg.Transparency = 1*i
  840. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  841. end
  842. wait()
  843. effectsg.Parent = nil
  844. end))
  845. end
  846. --
  847. con = nil
  848. function dmgcnnct()
  849. if con ~= nil then
  850. con:disconnect()
  851. Hitdeb = 0
  852. end
  853. con = prt3.Touched:connect(OT)
  854. end
  855. function sidebshcnnct()
  856. if con ~= nil then
  857. con:disconnect()
  858. Hitdeb = 0
  859. end
  860. con = prt3.Touched:connect(OT2)
  861. end
  862. function nrdmgcnnct()
  863. if con ~= nil then
  864. con:disconnect()
  865. Hitdeb = 0
  866. end
  867. con = prt3.Touched:connect(OTNR)
  868. end
  869. function dmgdc()
  870. if con ~= nil then
  871. con:disconnect()
  872. Hitdeb = 0
  873. end
  874. end
  875. function rptddmg(value,des,inc)
  876. coroutine.resume(coroutine.create(function()
  877. repeat
  878. wait(inc)
  879. Hitdeb = 0
  880. until value == des
  881. end))
  882. end
  883. function atktype(s,e)
  884. coroutine.resume(coroutine.create(function ()
  885. attacktype = e
  886. wait(0.5)
  887. attacktype = s
  888. end))
  889. end
  890. function Guard()
  891. attack = true
  892. for i = 0 , 1 , 0.1 do
  893. wait()
  894. RW.C0 = CFrame.new(1+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(30+80*i),math.rad(-45+150*i),math.rad(-20+20*i))
  895. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(20*i), 0, 0)
  896. LW.C0 = CFrame.new(-1-0.5*i, 0.5*i, -0.5+0.25*i) * CFrame.Angles(math.rad(45+40*i),math.rad(0),math.rad(45-45*i))
  897. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  898. w1.C0 = CFrame.Angles(math.rad(-90-20*i), math.rad(0), math.rad(90-90*i)) * CFrame.new(0, 0, -0.5)
  899. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(15*i),0,0)
  900. end
  901. blk.Value = true
  902. ms(Head,1.5)
  903. repeat
  904. wait(0.1)
  905. until not buttonhold or not blk.Value
  906. blk.Value = false
  907. if blkc.Value < 1 then
  908. local T = Instance.new("Part")
  909. T.formFactor = 0
  910. T.CanCollide = false
  911. T.Name = "FakeTorso"
  912. T.Locked = true
  913. T.Size = Torso.Size
  914. T.Parent = swordholder
  915. T.Transparency = 1
  916. T.BrickColor = Torso.BrickColor
  917. for i,z in pairs(Character:GetChildren()) do
  918. if z.className == "CharacterMesh" then
  919. if z.BodyPart == Enum.BodyPart.Torso then
  920. local SM = Instance.new("SpecialMesh",T)
  921. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  922. if z.BaseTextureId ~= 0 then
  923. SM.TextureId = z.BaseTextureId
  924. elseif z.OverlayTextureId ~= 0 then
  925. SM.TextureId = z.OverlayTextureId
  926. else
  927. SM.TextureId = ""
  928. end
  929. end
  930. end
  931. end
  932. local wt = Instance.new("Weld")
  933. wt.Parent = T
  934. wt.Part0 = T
  935. wt.Part1 = Torso
  936. RW.Part0 = T
  937. LW.Part0 = T
  938. T.Transparency = 0
  939. Torso.Transparency = 1
  940. RHL.Part0 = T
  941. LHL.Part0 = T
  942. uss(Head,0.5)
  943. for i = 0 , 1 , 0.2 do
  944. wait()
  945. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5) * CFrame.Angles(math.rad(110),math.rad(105+20*i),math.rad(0))
  946. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(20-15*i), 0, 0)
  947. LW.C0 = CFrame.new(-1.5, 0.5, -0.25) * CFrame.Angles(math.rad(85-45*i),math.rad(0),math.rad(-65*i))
  948. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  949. w1.C0 = CFrame.Angles(math.rad(-110), math.rad(0), math.rad(0)) * CFrame.new(0, 0, -0.5)
  950. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(15+20*i),0,math.rad(65*i))
  951. wt.C0 = CFrame.Angles(0, math.rad(-60*i), 0)
  952. end
  953. for i = 0 , 1 , 0.1 do
  954. wait()
  955. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(110),math.rad(125),math.rad(0))
  956. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(5-10*i), 0, 0)
  957. LW.C0 = CFrame.new(-1.5, 0.5, -0.25) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(-65-10*i))
  958. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  959. w1.C0 = CFrame.Angles(math.rad(-110), math.rad(0), math.rad(0)) * CFrame.new(0, 0, -0.5)
  960. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(35),0,math.rad(65+25*i))
  961. wt.C0 = CFrame.Angles(0, math.rad(-60-30*i), 0)
  962. end
  963. for i = 0 , 1 , 0.1 do
  964. wait()
  965. RW.C0 = CFrame.new(1, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(110-40*i),math.rad(125-125*i),math.rad(-10*i))
  966. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5+5*i), 0, 0)
  967. LW.C0 = CFrame.new(-1.5+0.25*i, 0.5-0.5*i, -0.25-0.25*i) * CFrame.Angles(math.rad(40+5*i),math.rad(0),math.rad(-75+120*i))
  968. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  969. w1.C0 = CFrame.Angles(math.rad(-110+20*i), math.rad(0), math.rad(90*i)) * CFrame.new(0, 0, -0.5)
  970. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(35-35*i),0,math.rad(85-85*i))
  971. wt.C0 = CFrame.Angles(0, math.rad(-90+80*i), 0)
  972. end
  973. for i = 0 , 1 , 0.2 do
  974. wait()
  975. RW.C0 = CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(70-40*i),math.rad(-45*i),math.rad(-10-10*i))
  976. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  977. LW.C0 = CFrame.new(-1.25+0.25*i, 0, -0.5) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(45))
  978. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  979. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  980. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,math.rad(0))
  981. wt.C0 = CFrame.Angles(0, math.rad(-10+10*i), 0)
  982. end
  983. RHL.Part0 = Torso
  984. LHL.Part0 = Torso
  985. RW.Part0 = Torso
  986. LW.Part0 = Torso
  987. T.Parent = nil
  988. Torso.Transparency = 0
  989. elseif blkc.Value >= 1 then
  990. for i = 0 , 1 , 0.1 do
  991. wait()
  992. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(110-80*i),math.rad(105-150*i),math.rad(-20*i))
  993. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(20-20*i), 0, 0)
  994. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5-0.5*i, -0.25-0.25*i) * CFrame.Angles(math.rad(85-40*i),math.rad(0),math.rad(45*i))
  995. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  996. w1.C0 = CFrame.Angles(math.rad(-110+20*i), math.rad(0), math.rad(90*i)) * CFrame.new(0, 0, -0.5)
  997. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(15-15*i),0,0)
  998. end
  999. end
  1000. blkc.Value = blockpower
  1001. attack = false
  1002. end
  1003. function ChargedSlash()
  1004. attack = true
  1005. local T = Instance.new("Part")
  1006. T.formFactor = 0
  1007. T.CanCollide = false
  1008. T.Name = "FakeTorso"
  1009. T.Locked = true
  1010. T.Size = Torso.Size
  1011. T.Parent = swordholder
  1012. T.Transparency = 1
  1013. T.BrickColor = Torso.BrickColor
  1014. for i,z in pairs(Character:GetChildren()) do
  1015. if z.className == "CharacterMesh" then
  1016. if z.BodyPart == Enum.BodyPart.Torso then
  1017. local SM = Instance.new("SpecialMesh",T)
  1018. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  1019. if z.BaseTextureId ~= 0 then
  1020. SM.TextureId = z.BaseTextureId
  1021. elseif z.OverlayTextureId ~= 0 then
  1022. SM.TextureId = z.OverlayTextureId
  1023. else
  1024. SM.TextureId = ""
  1025. end
  1026. end
  1027. end
  1028. end
  1029. local wt = Instance.new("Weld")
  1030. wt.Parent = T
  1031. wt.Part0 = T
  1032. wt.Part1 = Torso
  1033. RW.Part0 = T
  1034. LW.Part0 = T
  1035. T.Transparency = 0
  1036. Torso.Transparency = 1
  1037. RHL.Part0 = T
  1038. LHL.Part0 = T
  1039. Character.Humanoid.WalkSpeed = ws/2
  1040. for i = 0.1 , 1 , 0.05 do
  1041. wait()
  1042. RW.C0 = CFrame.new(1+0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(30+190*i),math.rad(-45+55*i),math.rad(-20+10*i))
  1043. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1044. LW.C0 = CFrame.new(-1+1.5*i, 1*i, -0.5) * CFrame.Angles(math.rad(45+45*i),math.rad(0),math.rad(45+65*i))
  1045. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45*i), 0, 0)
  1046. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  1047. wt.C0 = CFrame.Angles(0, math.rad(45*i), 0)
  1048. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10*i),0,math.rad(0))
  1049. end
  1050. for i = 0.1 , 1 , 0.1 do
  1051. wait()
  1052. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(220+10*i),math.rad(10),math.rad(-10))
  1053. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1054. LW.C0 = CFrame.new(0.5, 1, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(110+25*i))
  1055. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45-5*i), 0, 0)
  1056. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  1057. wt.C0 = CFrame.Angles(0, math.rad(45), 0)
  1058. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10-10*i),0,math.rad(0))
  1059. end
  1060. local ii = 0
  1061. if hold then
  1062. repeat
  1063. if ii >= maxCharge then
  1064. ii = maxCharge
  1065. wait()
  1066. elseif ii < maxCharge then
  1067. if Rage >= 5 then
  1068. wait(0.75/2)
  1069. ii = ii + 1
  1070. subdmg(-10*ii)
  1071. oblkbrkr = oblkbrkr + 1
  1072. if ii >= maxCharge then
  1073. uss(Head,0.75)
  1074. else
  1075. uss(Head,1.5)
  1076. end
  1077. Rage = Rage - 5
  1078. for z = 1 , 2 do
  1079. coroutine.resume(coroutine.create(function()
  1080. local meshb1 = Instance.new("BlockMesh")
  1081. meshb1.Scale = Vector3.new(1,1,1)
  1082. local shellb1 = Instance.new("Part")
  1083. meshb1.Parent = shellb1
  1084. shellb1.Anchored = true
  1085. shellb1.formFactor = 3
  1086. if ii >= maxCharge then
  1087. shellb1.Size = Vector3.new(1.4,1.4,1.4) * (math.random(10,50)/10)
  1088. else
  1089. shellb1.Size = Vector3.new(0.8,0.8,0.8) * (math.random(10,50)/10)
  1090. end
  1091. shellb1.CFrame = CFrame.new(prt1.CFrame.p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  1092. shellb1.Parent = swordholder
  1093. shellb1.Transparency = 0
  1094. if math.random(1,2) == 1 then
  1095. shellb1.BrickColor = BrickColor.new("Bright yellow")
  1096. else
  1097. shellb1.BrickColor = BrickColor.new("Bright orange")
  1098. end
  1099. shellb1.CanCollide = false
  1100. for i = 0 , 1 , 0.1 do
  1101. wait()
  1102. shellb1.CFrame = shellb1.CFrame * CFrame.Angles(0.1,0.1,0.1)
  1103. shellb1.Transparency = 1*i
  1104. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  1105. end
  1106. shellb1.Parent=nil
  1107. end))
  1108. end
  1109. wait(0.75/2)
  1110. else
  1111. wait()
  1112. end
  1113. end
  1114. until not hold or Rage < 5
  1115. end
  1116. local lp = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1117. for i = 0.1 , 1 , 0.2 do
  1118. wait()
  1119. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(230-130*i),math.rad(10-10*i),math.rad(-10-35*i))
  1120. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1121. LW.C0 = CFrame.new(0.5-1*i, 1, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(135-150*i))
  1122. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-50+10*i), 0, 0)
  1123. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5+1*i)
  1124. wt.C0 = CFrame.Angles(0, math.rad(45-10*i), 0)
  1125. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-20+30*i),0,math.rad(0))
  1126. if i > 0.4 then if ii ~= 0 then nrdmgcnnct() elseif ii == 0 then dmgcnnct() end end
  1127. local Point = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1128. effect("White",0.5,lp,Point)
  1129. lp = Point
  1130. end
  1131. for i = 0.1 , 1 , 0.15 do
  1132. wait()
  1133. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45))
  1134. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(130*i), 0, 0)
  1135. LW.C0 = CFrame.new(-0.5, 1-0.5*i, -0.5) * CFrame.Angles(math.rad(90-70*i),math.rad(-20*i),math.rad(-15+45*i))
  1136. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-40+40*i), 0, 0)
  1137. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.5)
  1138. wt.C0 = CFrame.Angles(0, math.rad(35-5*i), 0)
  1139. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10+20*i),0,math.rad(0))
  1140. local Point = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1141. effect("White",0.5,lp,Point)
  1142. lp = Point
  1143. end
  1144. wait()
  1145. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45))
  1146. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(130), 0, 0)
  1147. LW.C0 = CFrame.new(-0.5, 0.5, -0.5) * CFrame.Angles(math.rad(20),math.rad(-20),math.rad(30))
  1148. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1149. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.5)
  1150. wt.C0 = CFrame.Angles(0, math.rad(40), 0)
  1151. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30),0,math.rad(0))
  1152. local Point = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1153. effect("White",0.5,lp,Point)
  1154. lp = Point
  1155. coroutine.resume(coroutine.create(function()
  1156. local pp = CFrame.new(prt5.Position + Vector3.new(0,3,0))
  1157. local ht,ps = rayCast(pp.p, (CFrame.new(pp.p,pp.p - Vector3.new(0,3,0))).lookVector, 3, Character)
  1158. if ht ~= nil then
  1159. local meshb1 = Instance.new("SpecialMesh")
  1160. meshb1.Scale = Vector3.new(3,5,3)
  1161. meshb1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1162. local shellb1 = Instance.new("Part")
  1163. meshb1.Parent = shellb1
  1164. shellb1.Anchored = true
  1165. shellb1.formFactor = 3
  1166. shellb1.Size = Vector3.new(.2,.2,.2)
  1167. shellb1.CFrame = CFrame.new(ps+Vector3.new(0,2.25,0))
  1168. shellb1.Parent = swordholder
  1169. shellb1.Transparency = 0
  1170. shellb1.BrickColor = ht.BrickColor
  1171. shellb1.CanCollide = false
  1172. for i = 0 , 1 , 0.1 do
  1173. wait()
  1174. shellb1.CFrame = shellb1.CFrame + Vector3.new(0,0.1,0)
  1175. shellb1.Transparency = 1*i
  1176. meshb1.Scale = Vector3.new(3+1*i,5+1*i,3+1*i)
  1177. end
  1178. shellb1.Parent=nil
  1179. end
  1180. end))
  1181. ms(Head,0.1)
  1182. dmgdc()
  1183. wait(0.25)
  1184. returndmg()
  1185. oblkbrkr = blkbrkr
  1186. for i = 0.1 , 1 , 0.15 do
  1187. wait()
  1188. wt.C0 = CFrame.Angles(0, math.rad(30-30*i), 0)
  1189. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30-30*i),0,math.rad(0))
  1190. end
  1191. RHL.Part0 = Torso
  1192. LHL.Part0 = Torso
  1193. RW.Part0 = Torso
  1194. LW.Part0 = Torso
  1195. T.Parent = nil
  1196. Torso.Transparency = 0
  1197. Neck.C0 = neckcf0
  1198. Character.Humanoid.WalkSpeed = ws
  1199. wait(0.1)
  1200. attack = false
  1201. atktype(1,2)
  1202. for i = 0.1 , 1 , 0.05 do
  1203. if attack then return end
  1204. wait()
  1205. RW.C0 = CFrame.new(1, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(90-60*i),math.rad(-45*i),math.rad(-45+25*i))
  1206. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(130-130*i), 0, 0)
  1207. LW.C0 = CFrame.new(-0.5-0.5*i, 0.5-0.5*i, -0.5) * CFrame.Angles(math.rad(20+25*i),math.rad(-20+20*i),math.rad(30+15*i))
  1208. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1209. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.5-1*i)
  1210. end
  1211. returnwelds()
  1212. wait(0.25)
  1213. end
  1214. function SideBash()
  1215. attack = true
  1216. wait(0.1)
  1217. local T = Instance.new("Part")
  1218. T.formFactor = 0
  1219. T.CanCollide = false
  1220. T.Name = "FakeTorso"
  1221. T.Locked = true
  1222. T.Size = Torso.Size
  1223. T.Parent = swordholder
  1224. T.Transparency = 1
  1225. T.BrickColor = Torso.BrickColor
  1226. for i,z in pairs(Character:GetChildren()) do
  1227. if z.className == "CharacterMesh" then
  1228. if z.BodyPart == Enum.BodyPart.Torso then
  1229. local SM = Instance.new("SpecialMesh",T)
  1230. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  1231. if z.BaseTextureId ~= 0 then
  1232. SM.TextureId = z.BaseTextureId
  1233. elseif z.OverlayTextureId ~= 0 then
  1234. SM.TextureId = z.OverlayTextureId
  1235. else
  1236. SM.TextureId = ""
  1237. end
  1238. end
  1239. end
  1240. end
  1241. local wt = Instance.new("Weld")
  1242. wt.Parent = T
  1243. wt.Part0 = T
  1244. wt.Part1 = Torso
  1245. RW.Part0 = T
  1246. LW.Part0 = T
  1247. T.Transparency = 0
  1248. Torso.Transparency = 1
  1249. RHL.Part0 = T
  1250. LHL.Part0 = T
  1251. Character.Humanoid.WalkSpeed = 0
  1252. for i = 0.1 , 1 , 0.1 do
  1253. wait()
  1254. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5) * CFrame.Angles(math.rad(90-90*i),math.rad(-45*i),math.rad(-45+45*i))
  1255. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(130-160*i), 0, 0)
  1256. LW.C0 = CFrame.new(-0.5, 0.5, -0.5) * CFrame.Angles(math.rad(20),math.rad(-20),math.rad(30))
  1257. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1258. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(30*i), math.rad(90)) * CFrame.new(0, 0, 0.5-1*i)
  1259. w1.C1 = CFrame.Angles(0,0,math.rad(45*i))
  1260. wt.C0 = CFrame.Angles(0, math.rad(30*i), 0)
  1261. end
  1262. local lp = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1263. sidebshcnnct()
  1264. prcntdmg(50)
  1265. ss(Head,1.5)
  1266. for i = 0 , 1 , 0.2 do
  1267. wait()
  1268. wt.C0 = CFrame.Angles(0, math.rad(30-100*i), 0)
  1269. local Point = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1270. effect("White",0.5,lp,Point)
  1271. lp = Point
  1272. end
  1273. for i = 0.1 , 1 , 0.1 do
  1274. wait()
  1275. RW.C0 = CFrame.new(1.5, 0.5, -0.5) * CFrame.Angles(math.rad(0),math.rad(-45),math.rad(10*i))
  1276. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-30), 0, 0)
  1277. LW.C0 = CFrame.new(-0.5, 0.5, -0.5) * CFrame.Angles(math.rad(20),math.rad(-20),math.rad(30))
  1278. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1279. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(30), math.rad(90)) * CFrame.new(0, 0, -0.5)
  1280. w1.C1 = CFrame.Angles(0,0,math.rad(45))
  1281. wt.C0 = CFrame.Angles(0, math.rad(-70-10*i), 0)
  1282. end
  1283. wait(0.25)
  1284. for i = 0.1 , 1 , 0.1 do
  1285. wait()
  1286. wt.C0 = CFrame.Angles(0, math.rad(-80+80*i), 0)
  1287. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(30-30*i), math.rad(90)) * CFrame.new(0, 0, -0.5)
  1288. w1.C1 = CFrame.Angles(0,0,math.rad(45-45*i))
  1289. end
  1290. dmgdc()
  1291. Character.Humanoid.WalkSpeed = ws
  1292. RHL.Part0 = Torso
  1293. LHL.Part0 = Torso
  1294. RW.Part0 = Torso
  1295. LW.Part0 = Torso
  1296. T.Parent = nil
  1297. Torso.Transparency = 0
  1298. wait(0.15)
  1299. attack = false
  1300. atktype(1,3)
  1301. for i = 0.1 , 1 , 0.1 do
  1302. if attack then return end
  1303. wait()
  1304. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(30*i),math.rad(-45),math.rad(10-30*i))
  1305. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-30+30*i), 0, 0)
  1306. LW.C0 = CFrame.new(-0.5-0.5*i, 0.5-0.5*i, -0.5) * CFrame.Angles(math.rad(20+25*i),math.rad(-20+20*i),math.rad(30+15*i))
  1307. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1308. end
  1309. end
  1310. function SpinSlash()
  1311. attack = true
  1312. wait(0.1)
  1313. local T = Instance.new("Part")
  1314. T.formFactor = 0
  1315. T.CanCollide = false
  1316. T.Name = "FakeTorso"
  1317. T.Locked = true
  1318. T.Size = Torso.Size
  1319. T.Parent = swordholder
  1320. T.Transparency = 1
  1321. T.BrickColor = Torso.BrickColor
  1322. for i,z in pairs(Character:GetChildren()) do
  1323. if z.className == "CharacterMesh" then
  1324. if z.BodyPart == Enum.BodyPart.Torso then
  1325. local SM = Instance.new("SpecialMesh",T)
  1326. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  1327. if z.BaseTextureId ~= 0 then
  1328. SM.TextureId = z.BaseTextureId
  1329. elseif z.OverlayTextureId ~= 0 then
  1330. SM.TextureId = z.OverlayTextureId
  1331. else
  1332. SM.TextureId = ""
  1333. end
  1334. end
  1335. end
  1336. end
  1337. local wt = Instance.new("Weld")
  1338. wt.Parent = T
  1339. wt.Part0 = T
  1340. wt.Part1 = Torso
  1341. RW.Part0 = T
  1342. LW.Part0 = T
  1343. T.Transparency = 0
  1344. Torso.Transparency = 1
  1345. RHL.Part0 = T
  1346. LHL.Part0 = T
  1347. for i = 0.1 , 1 , 0.05 do
  1348. wait()
  1349. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5) * CFrame.Angles(math.rad(90*i),math.rad(-45+180*i),math.rad(10-10*i))
  1350. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-30), 0, 0)
  1351. LW.C0 = CFrame.new(-0.5-0.25*i, 0.5, -0.5) * CFrame.Angles(math.rad(20+10*i),math.rad(-20+30*i),math.rad(30))
  1352. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1353. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5+1*i)
  1354. wt.C0 = CFrame.Angles(0,math.rad(-45*i),0)
  1355. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(20*i),0,math.rad(45*i))
  1356. end
  1357. ss(Head,1)
  1358. for i = 0.1 , 1 , 0.1 do
  1359. wait()
  1360. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(135),math.rad(0))
  1361. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-30-15*i), 0, 0)
  1362. LW.C0 = CFrame.new(-0.75, 0.5, -0.5) * CFrame.Angles(math.rad(30-10*i),math.rad(10),math.rad(30))
  1363. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1364. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.5)
  1365. wt.C0 = CFrame.Angles(0,math.rad(-45),0)
  1366. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(20+10*i),0,math.rad(45+10*i))
  1367. end
  1368. local lp = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1369. dmgcnnct()
  1370. prcntdmg(25)
  1371. for i = 0.1 , 1 , 0.1 do
  1372. wait()
  1373. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90),math.rad(135-10*i),math.rad(0))
  1374. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45+90*i), 0, 0)
  1375. LW.C0 = CFrame.new(-0.75-0.75*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(20+25*i),math.rad(10),math.rad(30-45*i))
  1376. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1377. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.5)
  1378. wt.C0 = CFrame.Angles(0,math.rad(-45+180*i),0)
  1379. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30-30*i),0,math.rad(55-180*i))
  1380. local Point = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1381. effect("White",0.5,lp,Point)
  1382. lp = Point
  1383. end
  1384. Hitdeb = 0
  1385. ss(Head,1)
  1386. for i = 0.1 , 1 , 0.1 do
  1387. wait()
  1388. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(125),math.rad(0))
  1389. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45+45*i), 0, 0)
  1390. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45+20*i),math.rad(10),math.rad(-15-20*i))
  1391. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1392. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.5)
  1393. wt.C0 = CFrame.Angles(0,math.rad(135+225*i),0)
  1394. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,math.rad(-125-235*i))
  1395. local Point = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1396. effect("White",0.5,lp,Point)
  1397. lp = Point
  1398. end
  1399. for i = 0.1 , 1 , 0.1 do
  1400. wait()
  1401. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(125),math.rad(0))
  1402. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(90+110*i), 0, 0)
  1403. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(65),math.rad(10),math.rad(-35))
  1404. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1405. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(135*i), math.rad(90)) * CFrame.new(0, 0, 0.5-0.5*i)
  1406. wt.C0 = CFrame.Angles(0,math.rad(45*i),0)
  1407. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,math.rad(-45*i))
  1408. local Point = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1409. effect("White",0.5,lp,Point)
  1410. lp = Point
  1411. end
  1412. dmgdc()
  1413. returndmg()
  1414. for i = 0.1 , 1 , 0.1 do
  1415. wait()
  1416. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,math.rad(-45+22.5*i))
  1417. wt.C0 = CFrame.Angles(0,math.rad(45-45*i),0)
  1418. end
  1419. RHL.Part0 = Torso
  1420. LHL.Part0 = Torso
  1421. RW.Part0 = Torso
  1422. LW.Part0 = Torso
  1423. T.Parent = nil
  1424. Torso.Transparency = 0
  1425. for i = 0.1 , 1 , 0.1 do
  1426. wait()
  1427. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(125-62.5*i),math.rad(0))
  1428. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(200-100*i), 0, 0)
  1429. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(65),math.rad(10),math.rad(-35))
  1430. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1431. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(135), math.rad(90)) * CFrame.new(0, 0, 0)
  1432. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,math.rad(-22.5+22.5*i))
  1433. end
  1434. for i = 0.1 , 1 , 0.1 do
  1435. wait()
  1436. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(90-60*i),math.rad(62.5-107.5*i),math.rad(-20*i))
  1437. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-100*i), 0, 0)
  1438. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5-0.5*i, -0.5*i) * CFrame.Angles(math.rad(65-20*i),math.rad(10-10*i),math.rad(-35+80*i))
  1439. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1440. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(135-135*i), math.rad(90)) * CFrame.new(0, 0, -0.5*i)
  1441. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,math.rad(0))
  1442. end
  1443. wait(0.15)
  1444. attack = false
  1445. end
  1446. function SmashWalls()
  1447. if Rage < 10 then return end
  1448. Rage = Rage - 10
  1449. attack = true
  1450. for i = 0.1 , 1 , 0.1 do
  1451. wait()
  1452. RW.C0 = CFrame.new(1, 0.5+0.25*i, -1+0.5*i) * CFrame.Angles(math.rad(30+90*i),math.rad(-45+45*i),math.rad(-20-15*i))
  1453. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1454. LW.C0 = CFrame.new(-1, 0.5*i, -0.5) * CFrame.Angles(math.rad(45+35*i),math.rad(0),math.rad(45))
  1455. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1456. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, -0.5)
  1457. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-20*i),0,math.rad(0))
  1458. end
  1459. for i = 0.2 , 1 , 0.2 do
  1460. wait()
  1461. RW.C0 = CFrame.new(1, 0.75, -0.5) * CFrame.Angles(math.rad(120+10*i),math.rad(0),math.rad(-35-10*i))
  1462. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1463. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(80+10*i),math.rad(0),math.rad(45))
  1464. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1465. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(45)) * CFrame.new(0, 0, -0.5)
  1466. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-20-5*i),0,math.rad(0))
  1467. end
  1468. local lp = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1469. for i = 0.15 , 1 , 0.15 do
  1470. wait()
  1471. RW.C0 = CFrame.new(1, 0.75-0.25*i, -0.5) * CFrame.Angles(math.rad(130-110*i),math.rad(0),math.rad(-45))
  1472. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1473. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5) * CFrame.Angles(math.rad(90-90*i),math.rad(0),math.rad(45))
  1474. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1475. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(65*i), math.rad(45)) * CFrame.new(0, 0, -0.5+0.5*i)
  1476. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-25+35*i),0,math.rad(0))
  1477. local Point = prt3.CFrame * CFrame.new(0,prt3.Size.Y/-2,0)
  1478. effect("White",0.5,lp,Point)
  1479. lp = Point
  1480. end
  1481. ms(Head,0.25)
  1482. coroutine.resume(coroutine.create(function()
  1483. local pp = CFrame.new(prt5.Position + Vector3.new(0,3,0))
  1484. local ht,ps = rayCast(pp.p, (CFrame.new(pp.p,pp.p - Vector3.new(0,3,0))).lookVector, 3, Character)
  1485. if ht ~= nil then
  1486. local meshb1 = Instance.new("SpecialMesh")
  1487. meshb1.Scale = Vector3.new(3,5,3)
  1488. meshb1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1489. local shellb1 = Instance.new("Part")
  1490. meshb1.Parent = shellb1
  1491. shellb1.Anchored = true
  1492. shellb1.formFactor = 3
  1493. shellb1.Size = Vector3.new(.2,.2,.2)
  1494. shellb1.CFrame = CFrame.new(ps+Vector3.new(0,2.25,0))
  1495. shellb1.Parent = swordholder
  1496. shellb1.Transparency = 0
  1497. shellb1.BrickColor = ht.BrickColor
  1498. shellb1.CanCollide = false
  1499. for i = 0 , 1 , 0.1 do
  1500. wait()
  1501. shellb1.CFrame = shellb1.CFrame + Vector3.new(0,0.1,0)
  1502. shellb1.Transparency = 1*i
  1503. meshb1.Scale = Vector3.new(3+1*i,5+1*i,3+1*i)
  1504. end
  1505. shellb1.Parent=nil
  1506. end
  1507. end))
  1508. coroutine.resume(coroutine.create(function()
  1509. local trs = Torso.CFrame
  1510. local hit,pos = rayCast(Torso.Position, trs.lookVector, 20, Workspace)
  1511. for i = 1 , (trs.p-pos).magnitude/4 do
  1512. wait() wait() wait()
  1513. local meshb = Instance.new("SpecialMesh")
  1514. meshb.Scale = Vector3.new(0,0,0)
  1515. meshb.MeshType = "Brick"
  1516. local pp = trs + trs.lookVector * (i*4)
  1517. local ht,ps = rayCast(pp.p, (CFrame.new(pp.p,pp.p - Vector3.new(0,50,0))).lookVector, 50, Character)
  1518. if ht ~= nil then
  1519. local shellb = Instance.new("Part")
  1520. meshb.Parent = shellb
  1521. shellb.Anchored = true
  1522. shellb.formFactor = 3
  1523. shellb.Size = Vector3.new(3.5,1,3.5)
  1524. shellb.CFrame = CFrame.new(ps+Vector3.new(0,-0.5,0))
  1525. shellb.Parent = swordholder
  1526. shellb.Transparency = 0
  1527. shellb.Material = ht.Material
  1528. shellb.BrickColor = ht.BrickColor
  1529. shellb.CanCollide = true
  1530. local meshb1 = Instance.new("SpecialMesh")
  1531. meshb1.Scale = Vector3.new(3,2,3)
  1532. meshb1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1533. local shellb1 = Instance.new("Part")
  1534. meshb1.Parent = shellb1
  1535. shellb1.Anchored = true
  1536. shellb1.formFactor = 3
  1537. shellb1.Size = Vector3.new(1,1,1)
  1538. shellb1.CFrame = CFrame.new(shellb.Position+Vector3.new(0,0.5,0)) --* CFrame.new(0,0,0)
  1539. shellb1.Parent = swordholder
  1540. shellb1.Transparency = 0
  1541. shellb1.BrickColor = ht.BrickColor
  1542. shellb1.CanCollide = false
  1543. --
  1544. local c = game.Workspace:GetChildren();
  1545. for i = 1, #c do
  1546. local hum = c[i]:findFirstChild("Humanoid")
  1547. if hum ~= nil and hum.Health ~= 0 then
  1548. local head = c[i]:findFirstChild("Torso");
  1549. if head ~= nil then
  1550. local mag = (head.Position - shellb.Position).magnitude;
  1551. if mag <= 7.5 and c[i].Name ~= Character.Name then
  1552. local foundd = false
  1553. for ii = 1 , #AoETrue do
  1554. if AoETrue[ii] == c[i].Name then
  1555. foundd = true
  1556. end
  1557. end
  1558. if foundd then
  1559. end
  1560. --
  1561. if not foundd then
  1562. local critrandomizer = math.random(crtrate)
  1563. if critrandomizer ~= 1 then
  1564. local rndmdamage = math.random(mindamage,maxdamage)
  1565. damage(hum,rndmdamage,false)
  1566. elseif critrandomizer == 1 then
  1567. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1568. damage(hum,rndmdamage,true)
  1569. end
  1570. table.insert(AoETrue,c[i].Name)
  1571. end
  1572. end
  1573. end
  1574. end
  1575. end
  1576. --
  1577. local cfo = CFrame.new(ps+Vector3.new(0,-0.5,0))
  1578. es(shellb,0.35+(0.95*math.random()))
  1579. coroutine.resume(coroutine.create(function()
  1580. for i = 0 , 1 , 0.1 do
  1581. wait()
  1582. meshb.Scale = Vector3.new(1,1,1)
  1583. shellb.Size = shellb.Size + Vector3.new(0,0.5,0)
  1584. cfo = cfo * CFrame.new(0,0.25,0)
  1585. shellb.CFrame = cfo
  1586. end
  1587. for i = 0 , 1 , 0.1 do
  1588. wait()
  1589. meshb.Scale = Vector3.new(1,1,1)
  1590. shellb.Size = shellb.Size + Vector3.new(0,0.1,0)
  1591. cfo = cfo * CFrame.new(0,0.05,0)
  1592. shellb.CFrame = cfo
  1593. end
  1594. wait(15)
  1595. for i = 0 , 1 , 0.1 do
  1596. wait()
  1597. shellb1.Transparency = 1*i
  1598. shellb.Size = shellb.Size + Vector3.new(0,-0.6,0)
  1599. cfo = cfo * CFrame.new(0,-0.3,0)
  1600. shellb.CFrame = cfo
  1601. end
  1602. shellb.Parent = nil
  1603. shellb1.Parent = nil
  1604. end))
  1605. end
  1606. end
  1607. end))
  1608. wait(0.25)
  1609. for i = 0.1 , 1 , 0.1 do
  1610. wait()
  1611. RW.C0 = CFrame.new(1, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(20+5*i),math.rad(-40*i),math.rad(-45+20*i))
  1612. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1613. LW.C0 = CFrame.new(-1, 0.25-0.25*i, -0.5) * CFrame.Angles(math.rad(40*i),math.rad(0),math.rad(45))
  1614. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1615. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(65-65*i), math.rad(45+45*i)) * CFrame.new(0, 0, -0.5*i)
  1616. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10-10*i),0,math.rad(0))
  1617. end
  1618. for i = 0.1 , 1 , 0.1 do
  1619. wait()
  1620. RW.C0 = CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(25+5*i),math.rad(-40-5*i),math.rad(-25+5*i))
  1621. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1622. LW.C0 = CFrame.new(-1, 0, -0.5) * CFrame.Angles(math.rad(40+5*i),math.rad(0),math.rad(45))
  1623. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1624. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  1625. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,math.rad(0))
  1626. end
  1627. for ii = 1 , #AoETrue do
  1628. table.remove(AoETrue,#AoETrue)
  1629. end
  1630. Neck.C0 = neckcf0
  1631. attack = false
  1632. end
  1633. function DashBash()
  1634. if Rage < 15 then return end
  1635. Rage = Rage - 15
  1636. attack = true
  1637. for i = 0.1 , 1 , 0.1 do
  1638. wait()
  1639. RW.C0 = CFrame.new(1, 0.5+0.5*i, -1+0.5*i) * CFrame.Angles(math.rad(30+80*i),math.rad(-45+180*i),math.rad(-20+20*i))
  1640. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(20*i), 0, 0)
  1641. LW.C0 = CFrame.new(-1-0.5*i, 0.5*i, -0.5) * CFrame.Angles(math.rad(45+40*i),math.rad(0),math.rad(45-25*i))
  1642. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1643. w1.C0 = CFrame.Angles(math.rad(-90-20*i), math.rad(0), math.rad(90-90*i)) * CFrame.new(0, 0, -0.5)
  1644. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(15*i),0,0)
  1645. end
  1646. prcntdmg(-20)
  1647. nrdmgcnnct()
  1648. local hit,pos = rayCast(Torso.Position,Torso.CFrame.lookVector,20,Character)
  1649. local vel = Instance.new("BodyPosition",Torso)
  1650. vel.maxForce = Vector3.new(1,1,1) * math.huge
  1651. vel.P = vel.P * 2
  1652. vel.position = pos
  1653. coroutine.resume(coroutine.create(function()
  1654. wait(0.075)
  1655. vel.Parent=nil
  1656. end))
  1657. local lp = Torso.CFrame
  1658. for i = 0 , 1 , 0.1 do
  1659. wait(0.01)
  1660. local Point = Torso.CFrame
  1661. effect("White",0.5,lp,Point)
  1662. lp = Point
  1663. end
  1664. wait(0.2)
  1665. dmgdc()
  1666. returndmg()
  1667. for i = 0.1 , 1 , 0.1 do
  1668. wait()
  1669. RW.C0 = CFrame.new(1, 1-0.5*i, -0.5-0.5*i) * CFrame.Angles(math.rad(110-80*i),math.rad(135-180*i),math.rad(-20*i))
  1670. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(20-20*i), 0, 0)
  1671. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5-0.5*i, -0.5) * CFrame.Angles(math.rad(85-40*i),math.rad(0),math.rad(20+25*i))
  1672. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1673. w1.C0 = CFrame.Angles(math.rad(-110+20*i), math.rad(0), math.rad(90*i)) * CFrame.new(0, 0, -0.5)
  1674. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(15-15*i),0,0)
  1675. end
  1676. Neck.C0 = neckcf0
  1677. attack = false
  1678. end
  1679. function returnwelds()
  1680. RW.C0 = CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(30),math.rad(-45),math.rad(-20))
  1681. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1682. LW.C0 = CFrame.new(-1, 0, -0.5) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(45))
  1683. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1684. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, -0.5)
  1685. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  1686. RWL.C1 = CFrame.new(0.5, 1, 0)
  1687. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  1688. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1689. end
  1690. function ob1d(mouse)
  1691. hold = true
  1692. if attack then return end
  1693. if attacktype == 1 then
  1694. ChargedSlash()
  1695. elseif attacktype == 2 then
  1696. SideBash()
  1697. elseif attacktype == 3 then
  1698. SpinSlash()
  1699. end
  1700. end
  1701. function ob1u(mouse)
  1702. hold = false
  1703. end
  1704. buttonhold = false
  1705. function key(key)
  1706. if attack then return end
  1707. if key == "f" then
  1708. buttonhold = true
  1709. Guard()
  1710. end
  1711. if key == "q" then
  1712. SmashWalls()
  1713. end
  1714. if key == "e" then
  1715. DashBash()
  1716. end
  1717. end
  1718. function key2(key)
  1719. if key == "f" then
  1720. buttonhold = false
  1721. end
  1722. end
  1723. function s(mouse)
  1724. repeat wait() until not attack
  1725. repeat wait() until not ev.Value
  1726. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1727. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1728. mouse.KeyDown:connect(key)
  1729. mouse.KeyUp:connect(key2)
  1730. equipanim()
  1731. ev.Value = true
  1732. end
  1733. function ds(mouse)
  1734. repeat wait() until not attack
  1735. repeat wait() until ev.Value
  1736.  
  1737. hideanim()
  1738. wait(0.1)
  1739. ev.Value = false
  1740. end
  1741. Bin.Selected:connect(s)
  1742. Bin.Deselected:connect(ds)
  1743. if PlayerGui:findFirstChild("RageMeter") ~= nil then
  1744. PlayerGui:findFirstChild("RageMeter").Parent = nil
  1745. end
  1746. local fullrage = false
  1747. coroutine.resume(coroutine.create(function()
  1748. local SG = Instance.new("ScreenGui",PlayerGui)
  1749. SG.Name = "RageMeter"
  1750. local frame = Instance.new("Frame",SG)
  1751. frame.Size = UDim2.new(0.2,0,0.1,0)
  1752. frame.Position = UDim2.new(0.5-0.1,0,0.05,0)
  1753. frame.BackgroundColor3 = BrickColor.new("Bright red").Color
  1754. local ragetext = Instance.new("TextLabel",frame)
  1755. ragetext.Size = UDim2.new(1,0,0.35,0)
  1756. ragetext.BackgroundTransparency = 1
  1757. ragetext.Text = "Rage"
  1758. ragetext.FontSize = "Size18"
  1759. local backing = Instance.new("ImageLabel",frame)
  1760. backing.Size = UDim2.new(0.8,0,0.45,0)
  1761. backing.Image = "http://www.roblox.com/asset/?id=48965808"
  1762. backing.Position = UDim2.new(0.1,0,0.45,0)
  1763. backing.BackgroundColor3 = BrickColor.new("Black").Color
  1764. local img = Instance.new("ImageLabel",backing)
  1765. img.Size = UDim2.new(1,0,1,0)
  1766. img.Image = "http://www.roblox.com/asset/?id=48965808"
  1767. img.Position = UDim2.new(0,0,0,0)
  1768. img.BackgroundColor3 = Color3.new(0.7,0.15,0.1) --BrickColor.new("Bright red").Color
  1769. local percent = Instance.new("TextLabel",backing)
  1770. percent.Size = UDim2.new(1,0,1,0)
  1771. percent.BackgroundTransparency = 1
  1772. percent.TextColor3 = BrickColor.new("White").Color
  1773. percent.Text = math.floor((Rage/MaxRage)*100).."%"
  1774. percent.FontSize = "Size18"
  1775. local frame2 = Instance.new("Frame",frame)
  1776. frame2.Size = UDim2.new(1,0,0.5,0)
  1777. frame2.Position = UDim2.new(0,0,-0.5,0)
  1778. frame2.BackgroundTransparency = 1
  1779. local function updateblk()
  1780. for i,z in pairs(frame2:GetChildren()) do
  1781. z.Parent = nil
  1782. end
  1783. for i = 1,blkc.Value do
  1784. local gimg = Instance.new("ImageLabel",frame2)
  1785. gimg.Size = UDim2.new(0.125,0,0.5,0)
  1786. gimg.Image = "http://www.roblox.com/asset/?id=48908046"
  1787. local ii = 1
  1788. if i <= 10 then
  1789. ii = 1
  1790. elseif i > 10 then
  1791. ii = 0
  1792. i = i - 10
  1793. end
  1794. gimg.Position = UDim2.new((0.1*i)-0.1075,0,0.5*ii,0)
  1795. gimg.BackgroundTransparency = 1
  1796. end
  1797. end
  1798. repeat
  1799. wait()
  1800. pcall(function()
  1801. updateblk()
  1802. img.Size = UDim2.new(1*(Rage/MaxRage),0,1,0)
  1803. percent.Text = math.floor((Rage/MaxRage)*100).."%"
  1804. if math.floor((Rage/MaxRage)*100) > 99 then
  1805. coroutine.resume(coroutine.create(function()
  1806. if not fullrage then
  1807. bs(Head,1.1)
  1808. fullrage = true
  1809. Character.Humanoid.WalkSpeed = ws+5
  1810. repeat
  1811. for i = 0 , 1 , 0.1 do
  1812. wait()
  1813. img.BackgroundColor3 = Color3.new(0.7+0.3*i,0.15+0.5*i,0.1+0.5*i)
  1814. end
  1815. for i = 0 , 1 , 0.1 do
  1816. wait()
  1817. img.BackgroundColor3 = Color3.new(1-0.75*i,0.65-0.65*i,0.6-0.6*i)
  1818. end
  1819. for i = 0 , 1 , 0.1 do
  1820. wait()
  1821. img.BackgroundColor3 = Color3.new(0.25+0.45*i,0.15*i,0.1*i)
  1822. end
  1823. until math.floor((Rage/MaxRage)*100) < 100
  1824. fullrage = false
  1825. Character.Humanoid.WalkSpeed = ws
  1826. end
  1827. end))
  1828. end
  1829. end)
  1830. until SG.Parent == nil
  1831. end))
  1832. ------------mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement