Sazious

Untitled

Dec 11th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 114.03 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. -------------------------------------------------------------------------------------
  88.  
  89.  
  90. Player = owner
  91. Character = Player.Character
  92. PlayerGui = Player.PlayerGui
  93. Backpack = Player.Backpack
  94. Torso = Character.Torso
  95. Head = Character.Head
  96. LeftArm = Character["Left Arm"]
  97. LeftLeg = Character["Left Leg"]
  98. RightArm = Character["Right Arm"]
  99. RightLeg = Character["Right Leg"]
  100. LS = Torso["Left Shoulder"]
  101. LH = Torso["Left Hip"]
  102. RS = Torso["Right Shoulder"]
  103. RH = Torso["Right Hip"]
  104. attack = false
  105. attackdebounce = false
  106. combo = 0
  107. mana = 400
  108. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  109. necko2=CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  110. mode = "Sword"
  111. spread2 = 0
  112. range2 = 500
  113. rangepower = 10
  114. Item = {"Normal", "Explode", "Bomb", "Dark"}
  115. Number = 1
  116. shot = Item[Number]
  117. alt=0
  118. mana2="Normal"
  119. Stance="Normal"
  120. t = nil
  121. local T = Torso:Clone()
  122. local H = Instance.new("Humanoid")
  123. local M = Instance.new("Model")
  124. local S = Character:Clone()
  125. point = false
  126. local neckcf0 = Torso.Neck.C0
  127. bg = Instance.new("BodyGyro")
  128. MMouse = nil
  129. radv = 90
  130. offset = 0
  131. aiming = false
  132. lol = false
  133. DemMags=0
  134. skillcombo=0
  135. blackhole=false
  136. --player
  137. player = nil
  138. --other var
  139. player = Player
  140. ch = Character
  141. --save shoulders
  142. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  143. --welds
  144. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  145. --what anim
  146. anim = "none"
  147. EtheralMode=false
  148.  
  149. if Character:findFirstChild("God Arc",true) ~= nil then
  150. Character:findFirstChild("God Arc",true).Parent = nil
  151. end
  152. if Character:findFirstChild("Weapon",true) ~= nil then
  153. Character:findFirstChild("Weapon",true).Parent = nil
  154. end
  155. if Character:findFirstChild("ArmataeModel",true) ~= nil then
  156. Character:findFirstChild("ArmataeModel",true).Parent = nil
  157. end
  158. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  159. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  160. end
  161.  
  162. --[[
  163. if Player.userId ~= then
  164. script.Parent = Character
  165. local h = Instance.new("Hint")
  166. h.Parent = workspace
  167. h.Text = "UR NOT FEN!"
  168. wait(1)
  169. h.Text = "U MUST DAI!!"
  170. wait(0.5)
  171. if Character:findFirstChild("ForceField") ~= nil then
  172. Character:findFirstChild("ForceField").Parent = nil
  173. end
  174. Character:BreakJoints()
  175. local m = Instance.new("Explosion")
  176. m.Parent = workspace
  177. m.Position = Torso.Position
  178. wait(3)
  179. h.Parent = nil
  180. script.Parent = nil
  181. wait(9001)
  182. while true do
  183. wait()
  184. end
  185. end
  186. ]]--
  187.  
  188. local modelzorz = Instance.new("Model")
  189. modelzorz.Name = "God Arc"
  190. modelzorz.Parent = Character
  191.  
  192. local prt1 = Instance.new("Part")
  193. prt1.formFactor = 1
  194. prt1.Parent = modelzorz
  195. prt1.CanCollide = false
  196. prt1.BrickColor = BrickColor.new("Black")
  197. prt1.Name = "Part1"
  198. prt1.Size = Vector3.new(1,3,1)
  199. prt1.Position = Torso.Position
  200. local prt2 = Instance.new("Part")
  201. prt2.formFactor = 1
  202. prt2.Parent = modelzorz
  203. prt2.CanCollide = false
  204. prt2.BrickColor = BrickColor.new("Medium stone grey")
  205. prt2.Name = "Part2"
  206. prt2.Size = Vector3.new(1,1,1)
  207. prt2.Position = Torso.Position
  208. local prt3 = Instance.new("Part")
  209. prt3.formFactor = 1
  210. prt3.Parent = modelzorz
  211. prt3.CanCollide = false
  212. prt3.BrickColor = BrickColor.new("Medium stone grey")
  213. prt3.Name = "Part3"
  214. prt3.Size = Vector3.new(1,1,1)
  215. prt3.Position = Torso.Position
  216. local prt4 = Instance.new("Part")
  217. prt4.formFactor = 1
  218. prt4.Parent = modelzorz
  219. prt4.CanCollide = false
  220. prt4.BrickColor = BrickColor.new("Medium stone grey")
  221. prt4.Name = "Part4"
  222. prt4.Size = Vector3.new(1,1,1)
  223. prt4.Position = Torso.Position
  224. local prt5 = Instance.new("Part")
  225. prt5.formFactor = 1
  226. prt5.Parent = modelzorz
  227. prt5.CanCollide = false
  228. prt5.BrickColor = BrickColor.new("Dark stone grey")
  229. prt5.Name = "Part5"
  230. prt5.Size = Vector3.new(1,1,1)
  231. prt5.Position = Torso.Position
  232. local prt6 = Instance.new("Part")
  233. prt6.formFactor = 1
  234. prt6.Parent = modelzorz
  235. prt6.CanCollide = false
  236. prt6.BrickColor = BrickColor.new("Black")
  237. prt6.Name = "Part6"
  238. prt6.Size = Vector3.new(1,1,1)
  239. prt6.Position = Torso.Position
  240. local prt7 = Instance.new("Part")
  241. prt7.formFactor = 1
  242. prt7.Parent = modelzorz
  243. prt7.CanCollide = false
  244. prt7.BrickColor = BrickColor.new("Black")
  245. prt7.Name = "Part7"
  246. prt7.Size = Vector3.new(1,2,1)
  247. prt7.Position = Torso.Position
  248. local prt8 = Instance.new("Part")
  249. prt8.formFactor = 1
  250. prt8.Parent = modelzorz
  251. prt8.CanCollide = false
  252. prt8.BrickColor = BrickColor.new("Dark stone grey")
  253. prt8.Name = "Part8"
  254. prt8.Size = Vector3.new(1,1,1)
  255. prt8.Position = Torso.Position
  256. local prt9 = Instance.new("Part")
  257. prt9.formFactor = 1
  258. prt9.Parent = modelzorz
  259. prt9.CanCollide = false
  260. prt9.BrickColor = BrickColor.new("White")
  261. prt9.Name = "Part9"
  262. prt9.Size = Vector3.new(1,1,1)
  263. prt9.Position = Torso.Position
  264. local prt10 = Instance.new("Part")
  265. prt10.formFactor = 1
  266. prt10.Parent = modelzorz
  267. prt10.CanCollide = false
  268. prt10.BrickColor = BrickColor.new("Medium stone grey")
  269. prt10.Name = "Part10"
  270. prt10.Size = Vector3.new(1,1,1)
  271. prt10.Position = Torso.Position
  272. local prt11 = Instance.new("Part")
  273. prt11.formFactor = 1
  274. prt11.Parent = modelzorz
  275. prt11.CanCollide = false
  276. prt11.BrickColor = BrickColor.new("Dark stone grey")
  277. prt11.Name = "Part11"
  278. prt11.Size = Vector3.new(1,1,1)
  279. prt11.Position = Torso.Position
  280. local prt12 = Instance.new("Part")
  281. prt12.formFactor = 1
  282. prt12.Parent = modelzorz
  283. prt12.CanCollide = false
  284. prt12.BrickColor = BrickColor.new("White")
  285. prt12.Reflectance = 0.2
  286. prt12.Name = "Part12"
  287. prt12.Size = Vector3.new(1,4,1)
  288. prt12.Position = Torso.Position
  289. local prt13 = Instance.new("Part")
  290. prt13.formFactor = 1
  291. prt13.Parent = modelzorz
  292. prt13.CanCollide = false
  293. prt13.BrickColor = BrickColor.new("Medium stone grey")
  294. prt13.Reflectance = 0.5
  295. prt13.Name = "Part13"
  296. prt13.Size = Vector3.new(1,4,1)
  297. prt13.Position = Torso.Position
  298. local prt14 = Instance.new("Part")
  299. prt14.formFactor = 1
  300. prt14.Parent = modelzorz
  301. prt14.CanCollide = false
  302. prt14.BrickColor = BrickColor.new("White")
  303. prt14.Reflectance = 0.3
  304. prt14.Name = "Part14"
  305. prt14.Size = Vector3.new(1,1,1)
  306. prt14.Position = Torso.Position
  307. local prt15 = Instance.new("Part")
  308. prt15.formFactor = 1
  309. prt15.Parent = modelzorz
  310. prt15.CanCollide = false
  311. prt15.BrickColor = BrickColor.new("Black")
  312. prt15.Reflectance = 0.3
  313. prt15.Name = "Part15"
  314. prt15.Size = Vector3.new(1,4,1)
  315. prt15.Position = Torso.Position
  316. local prt16 = Instance.new("Part")
  317. prt16.formFactor = 1
  318. prt16.Parent = modelzorz
  319. prt16.CanCollide = false
  320. prt16.BrickColor = BrickColor.new("White")
  321. prt16.Name = "Part16"
  322. prt16.Size = Vector3.new(1,1,1)
  323. prt16.Position = Torso.Position
  324. local prt17 = Instance.new("Part")
  325. prt17.formFactor = 1
  326. prt17.Parent = modelzorz
  327. prt17.CanCollide = false
  328. prt17.BrickColor = BrickColor.new("Medium stone grey")
  329. prt17.Name = "Part17"
  330. prt17.Size = Vector3.new(1,1,1)
  331. prt17.Position = Torso.Position
  332. local prt18 = Instance.new("Part")
  333. prt18.formFactor = 1
  334. prt18.Parent = modelzorz
  335. prt18.CanCollide = false
  336. prt18.BrickColor = BrickColor.new("Black")
  337. prt18.Name = "Part18"
  338. prt18.Size = Vector3.new(1,1,1)
  339. prt18.Position = Torso.Position
  340. local prt19 = Instance.new("Part")
  341. prt19.formFactor = 1
  342. prt19.Parent = modelzorz
  343. prt19.CanCollide = false
  344. prt19.BrickColor = BrickColor.new("Really black")
  345. prt19.Name = "Part19"
  346. prt19.Size = Vector3.new(1,1,1)
  347. prt19.Position = Torso.Position
  348. local prt20 = Instance.new("Part")
  349. prt20.formFactor = 1
  350. prt20.Parent = modelzorz
  351. prt20.CanCollide = false
  352. prt20.BrickColor = BrickColor.new("Medium stone grey")
  353. prt20.Name = "Part20"
  354. prt20.Size = Vector3.new(1,1,1)
  355. prt20.Position = Torso.Position
  356. local prt21 = Instance.new("Part")
  357. prt21.formFactor = 1
  358. prt21.Parent = modelzorz
  359. prt21.CanCollide = false
  360. prt21.BrickColor = BrickColor.new("Medium stone grey")
  361. prt21.Name = "Part21"
  362. prt21.Size = Vector3.new(1,1,1)
  363. prt21.Position = Torso.Position
  364. local prt22 = Instance.new("Part")
  365. prt22.formFactor = 1
  366. prt22.Parent = modelzorz
  367. prt22.CanCollide = false
  368. prt22.BrickColor = BrickColor.new("Medium stone grey")
  369. prt22.Name = "Part22"
  370. prt22.Size = Vector3.new(1,1,1)
  371. prt22.Position = Torso.Position
  372. local prt23 = Instance.new("Part")
  373. prt23.formFactor = 1
  374. prt23.Parent = modelzorz
  375. prt23.CanCollide = false
  376. prt23.BrickColor = BrickColor.new("Medium stone grey")
  377. prt23.Name = "Part23"
  378. prt23.Size = Vector3.new(1,1,1)
  379. prt23.Position = Torso.Position
  380. --[[local prt24 = Instance.new("Part")
  381. prt24.formFactor = 1
  382. prt24.Parent = modelzorz
  383. prt24.CanCollide = false
  384. prt24.BrickColor = BrickColor.new("Bright red")
  385. prt24.Name = "Part24"
  386. prt24.Size = Vector3.new(1,1,1)
  387. prt24.Position = Torso.Position ]]
  388. modelzorz:BreakJoints()
  389.  
  390. local msh1 = Instance.new("CylinderMesh")
  391. msh1.Parent = prt1
  392. msh1.Scale = Vector3.new(0.4,1,0.4)
  393. local msh2 = Instance.new("CylinderMesh")
  394. msh2.Parent = prt2
  395. msh2.Scale = Vector3.new(0.5,0.6,0.5)
  396. local msh3 = Instance.new("CylinderMesh")
  397. msh3.Parent = prt3
  398. msh3.Scale = Vector3.new(0.5,0.6,0.5)
  399. local msh4 = Instance.new("SpecialMesh")
  400. msh4.Parent = prt4
  401. msh4.Scale = Vector3.new(0.7,0.5,0.7)
  402. local msh5 = Instance.new("SpecialMesh")
  403. msh5.Parent = prt5
  404. msh5.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  405. msh5.Scale = Vector3.new(0.5,0.7,0.5)
  406. local msh6 = Instance.new("SpecialMesh")
  407. msh6.Parent = prt6
  408. msh6.MeshId = "http://www.roblox.com/asset/?id=1778999"
  409. msh6.Scale = Vector3.new(0.5,0.5,0.5)
  410. local msh7 = Instance.new("BlockMesh")
  411. msh7.Parent = prt7
  412. msh7.Scale = Vector3.new(1.2,1,0.7)
  413. local msh8 = Instance.new("SpecialMesh")
  414. msh8.Parent = prt8
  415. msh8.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  416. msh8.Scale = Vector3.new(0.5,0.7,0.5)
  417. local msh9 = Instance.new("SpecialMesh")
  418. msh9.Parent = prt9
  419. msh9.MeshType = "Sphere"
  420. msh9.Scale = Vector3.new(0.4,0.4,0.4)
  421. local msh10 = Instance.new("BlockMesh")
  422. msh10.Parent = prt10
  423. msh10.Scale = Vector3.new(1.5,1,0.8)
  424. local msh11 = Instance.new("CylinderMesh")
  425. msh11.Parent = prt11
  426. msh11.Scale = Vector3.new(1.5,0.9,1.5)
  427. local msh12 = Instance.new("BlockMesh")
  428. msh12.Parent = prt12
  429. msh12.Scale = Vector3.new(0.8,1,0.3)
  430. local msh13 = Instance.new("BlockMesh")
  431. msh13.Parent = prt13
  432. msh13.Scale = Vector3.new(1,1,0.1)
  433. local msh14 = Instance.new("SpecialMesh")
  434. msh14.Parent = prt14
  435. msh14.MeshType = "Wedge"
  436. msh14.Scale = Vector3.new(0.3,0.5,0.5)
  437. local msh15 = Instance.new("CylinderMesh")
  438. msh15.Parent = prt15
  439. msh15.Scale = Vector3.new(0.5,0.8,0.5)
  440. local msh16 = Instance.new("CylinderMesh")
  441. msh16.Parent = prt16
  442. msh16.Scale = Vector3.new(0.9,0.9,0.9)
  443. local msh17 = Instance.new("CylinderMesh")
  444. msh17.Parent = prt17
  445. msh17.Scale = Vector3.new(0.6,0.6,0.6)
  446. local msh18 = Instance.new("CylinderMesh")
  447. msh18.Parent = prt18
  448. msh18.Scale = Vector3.new(0.5,0.9,0.5)
  449. local msh19 = Instance.new("CylinderMesh")
  450. msh19.Parent = prt19
  451. msh19.Scale = Vector3.new(0.3,0.91,0.3)
  452. local msh20 = Instance.new("BlockMesh")
  453. msh20.Parent = prt20
  454. msh20.Scale = Vector3.new(0.1,0.7,0.1)
  455. local msh21 = Instance.new("BlockMesh")
  456. msh21.Parent = prt21
  457. msh21.Scale = Vector3.new(0.1,0.7,0.1)
  458. local msh22 = Instance.new("BlockMesh")
  459. msh22.Parent = prt22
  460. msh22.Scale = Vector3.new(0.1,0.7,0.1)
  461. local msh23 = Instance.new("BlockMesh")
  462. msh23.Parent = prt23
  463. msh23.Scale = Vector3.new(0.1,0.7,0.1)
  464. --[[local msh24 = Instance.new("BlockMesh")
  465. msh24.Parent = prt24
  466. msh24.Scale = Vector3.new(0.1,50,0.1) ]]
  467.  
  468. local wld1 = Instance.new("Weld")
  469. wld1.Parent = prt1
  470. wld1.Part0 = prt1
  471. wld1.Part1 = Torso
  472. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,3.14,2.2) * CFrame.new(1.5,-1.7,-0.8)
  473. local wld2 = Instance.new("Weld")
  474. wld2.Parent = prt2
  475. wld2.Part0 = prt2
  476. wld2.Part1 = prt1
  477. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.5,0)
  478. local wld3 = Instance.new("Weld")
  479. wld3.Parent = prt3
  480. wld3.Part0 = prt3
  481. wld3.Part1 = prt1
  482. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5,0)
  483. local wld4 = Instance.new("Weld")
  484. wld4.Parent = prt4
  485. wld4.Part0 = prt4
  486. wld4.Part1 = prt1
  487. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.1,0)
  488. local wld5 = Instance.new("Weld")
  489. wld5.Parent = prt5
  490. wld5.Part0 = prt5
  491. wld5.Part1 = prt4
  492. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3,0)
  493. local wld6 = Instance.new("Weld")
  494. wld6.Parent = prt6
  495. wld6.Part0 = prt6
  496. wld6.Part1 = prt1
  497. wld6.C0 = CFrame.fromEulerAnglesXYZ(3.14,0,0) * CFrame.new(0,-1,0)
  498. local wld7 = Instance.new("Weld")
  499. wld7.Parent = prt7
  500. wld7.Part0 = prt7
  501. wld7.Part1 = prt6
  502. wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,1.5,0)
  503. local wld8 = Instance.new("Weld")
  504. wld8.Parent = prt8
  505. wld8.Part0 = prt8
  506. wld8.Part1 = prt7
  507. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.5,-0.7,0)
  508. local wld9 = Instance.new("Weld")
  509. wld9.Parent = prt9
  510. wld9.Part0 = prt9
  511. wld9.Part1 = prt8
  512. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.15,0,0)
  513. local wld10 = Instance.new("Weld")
  514. wld10.Parent = prt10
  515. wld10.Part0 = prt10
  516. wld10.Part1 = prt7
  517. wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.3,0.5,0)
  518. local wld11 = Instance.new("Weld")
  519. wld11.Parent = prt11
  520. wld11.Part0 = prt11
  521. wld11.Part1 = prt10
  522. wld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  523. local wld12 = Instance.new("Weld")
  524. wld12.Parent = prt12
  525. wld12.Part0 = prt12
  526. wld12.Part1 = prt7
  527. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3,0)
  528. local wld13 = Instance.new("Weld")
  529. wld13.Parent = prt13
  530. wld13.Part0 = prt13
  531. wld13.Part1 = prt7
  532. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,3,0)
  533. local wld14 = Instance.new("Weld")
  534. wld14.Parent = prt14
  535. wld14.Part0 = prt14
  536. wld14.Part1 = prt12
  537. wld14.C0 = CFrame.fromEulerAnglesXYZ(-0.86,1.57,0) * CFrame.new(0,1.8,0)
  538. local wld15 = Instance.new("Weld")
  539. wld15.Parent = prt15
  540. wld15.Part0 = prt15
  541. wld15.Part1 = prt12
  542. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1,0)
  543. local wld16 = Instance.new("Weld")
  544. wld16.Parent = prt16
  545. wld16.Part0 = prt16
  546. wld16.Part1 = prt7
  547. wld16.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.3) * CFrame.new(-0.6,0,0)
  548. local wld17 = Instance.new("Weld")
  549. wld17.Parent = prt17
  550. wld17.Part0 = prt17
  551. wld17.Part1 = prt16
  552. wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  553. local wld18 = Instance.new("Weld")
  554. wld18.Parent = prt18
  555. wld18.Part0 = prt18
  556. wld18.Part1 = prt17
  557. wld18.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5,0)
  558. local wld19 = Instance.new("Weld")
  559. wld19.Parent = prt19
  560. wld19.Part0 = prt19
  561. wld19.Part1 = prt18
  562. wld19.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  563. local wld20 = Instance.new("Weld")
  564. wld20.Parent = prt20
  565. wld20.Part0 = prt20
  566. wld20.Part1 = prt16
  567. wld20.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.3,1,0)
  568. local wld21 = Instance.new("Weld")
  569. wld21.Parent = prt21
  570. wld21.Part0 = prt21
  571. wld21.Part1 = prt16
  572. wld21.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.3,1,0)
  573. local wld22 = Instance.new("Weld")
  574. wld22.Parent = prt22
  575. wld22.Part0 = prt22
  576. wld22.Part1 = prt16
  577. wld22.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,-0.3)
  578. local wld23 = Instance.new("Weld")
  579. wld23.Parent = prt23
  580. wld23.Part0 = prt23
  581. wld23.Part1 = prt16
  582. wld23.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0.3)
  583. --[[local wld24 = Instance.new("Weld")
  584. wld24.Parent = prt24
  585. wld24.Part0 = prt24
  586. wld24.Part1 = prt16
  587. wld24.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,20,0) ]]
  588.  
  589. local SlashSound = Instance.new("Sound") -- PRELOADING SOUNDS TROLOLOL
  590. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  591. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  592. SlashSound.Parent = modelzorz
  593. SlashSound.Volume = .7
  594. SlashSound.Pitch = 1
  595. local SlashSound = Instance.new("Sound")
  596. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  597. SlashSound.Parent = modelzorz
  598. SlashSound.Volume = .5
  599. SlashSound.Pitch = 1
  600. local SlashSound = Instance.new("Sound")
  601. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  602. SlashSound.Parent = modelzorz
  603. SlashSound.Volume = .7
  604. SlashSound.Pitch = 1
  605. local SlashSound = Instance.new("Sound")
  606. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  607. SlashSound.Parent = modelzorz
  608. SlashSound.Volume = .7
  609. SlashSound.Pitch = 1
  610.  
  611. local fengui = Instance.new("GuiMain")
  612. fengui.Parent = Player.PlayerGui
  613. fengui.Name = "manaGUI"
  614. local fenframe = Instance.new("Frame")
  615. fenframe.Parent = fengui
  616. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  617. fenframe.BackgroundTransparency = 1
  618. fenframe.BorderColor3 = Color3.new(17,17,17)
  619. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  620. local fentext = Instance.new("TextLabel")
  621. fentext.Parent = fenframe
  622. fentext.Text = "Energy("..mana..")"
  623. fentext.BackgroundTransparency = 1
  624. fentext.SizeConstraint = "RelativeXY"
  625. fentext.TextXAlignment = "Center"
  626. fentext.TextYAlignment = "Center"
  627. fentext.Position = UDim2.new(0,80,1,200)
  628. local fentext2 = Instance.new("TextLabel")
  629. fentext2.Parent = fenframe
  630. fentext2.Text = " "
  631. fentext2.BackgroundTransparency = 0
  632. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  633. fentext2.SizeConstraint = "RelativeXY"
  634. fentext2.TextXAlignment = "Center"
  635. fentext2.TextYAlignment = "Center"
  636. fentext2.Position = UDim2.new(0,10,1,170)
  637. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  638. local fentext3 = Instance.new("TextLabel")
  639. fentext3.Parent = fenframe
  640. fentext3.Text = " "
  641. fentext3.BackgroundTransparency = 0
  642. fentext3.BackgroundColor3 = Color3.new(1,1,0)
  643. fentext3.SizeConstraint = "RelativeXY"
  644. fentext3.TextXAlignment = "Center"
  645. fentext3.TextYAlignment = "Center"
  646. fentext3.Position = UDim2.new(0,10,1,170)
  647. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  648. local fentext4 = Instance.new("TextLabel")
  649. fentext4.Parent = fenframe
  650. fentext4.Text = "Shot Equipped: "..shot..""
  651. fentext4.BackgroundTransparency = 1
  652. fentext4.SizeConstraint = "RelativeXY"
  653. fentext4.TextXAlignment = "Center"
  654. fentext4.TextYAlignment = "Center"
  655. fentext4.Position = UDim2.new(0,80,1,150)
  656. local fentext5 = Instance.new("TextLabel")
  657. fentext5.Parent = fenframe
  658. fentext5.Text = "Alternate Shot: "..alt..""
  659. fentext5.BackgroundTransparency = 1
  660. fentext5.SizeConstraint = "RelativeXY"
  661. fentext5.TextXAlignment = "Center"
  662. fentext5.TextYAlignment = "Center"
  663. fentext5.Position = UDim2.new(0,80,1,140)
  664.  
  665. --[[local GUIMain = Instance.new("GuiMain")
  666. GUIMain.Parent = PlayerGui
  667. GUIMain.Name = "Shot"
  668. local MainTray = Instance.new("Frame")
  669. MainTray.Parent = GUIMain
  670. MainTray.Name = "Arc Tray"
  671. MainTray.BackgroundTransparency = 1
  672. MainTray.Position = UDim2.new(0, 0, 0.180000022, 0)
  673. MainTray.Size = UDim2.new(0.0450000018, 0, 0.340000004, 0)
  674. local ItemFrame = Instance.new("Frame")
  675. ItemFrame.Parent = MainTray
  676. ItemFrame.Name = "Item Ammo Frame"
  677. ItemFrame.Position = UDim2.new(0.420000017, 800, 0, 0)
  678. ItemFrame.Size = UDim2.new(0, 180, 0.300000012, 0)
  679. ItemFrame.BorderColor3 = Color3.new(0,0,0)
  680. local ItemText1 = Instance.new("TextBox")
  681. ItemText1.Parent = ItemFrame
  682. ItemText1.Name = "Item Equipped"
  683. ItemText1.FontSize = "Size10"
  684. ItemText1.Position = UDim2.new(0.499999988, 0, 0.300000012, 0)
  685. ItemText1.Text = "Shot Equipped:"
  686. local ItemText2 = Instance.new("TextBox")
  687. ItemText2.Parent = ItemFrame
  688. ItemText2.Name = "Dah Item"
  689. ItemText2.FontSize = "Size10"
  690. ItemText2.Position = UDim2.new(0.499999988, 0, 0.700000012, 0)
  691. ItemText2.Text = "Normal" ]]
  692.  
  693. --2.9000001, 0}, {0.450000018, 0}
  694. local gairo = Instance.new("BodyGyro")
  695. gairo.Parent = nil
  696. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  697. gairo.P = 20e+003
  698.  
  699. if (script.Parent.className ~= "HopperBin") then
  700. Tool = Instance.new("HopperBin")
  701. Tool.Parent = Backpack
  702. Tool.Name = "GodArc"
  703. script.Parent = Tool
  704. end
  705. Bin = script.Parent
  706.  
  707. function hideanim()
  708. if mode == "Gun" then
  709. bg.Parent = nil
  710. point = false
  711. for i = 0,1,0.1 do
  712. wait()
  713. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  714. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7*i,-1*i,0) * CFrame.new(0,0,0)
  715. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  716. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+3*i,-0.9+0.9*i,0)
  717. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  718. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+1.5-1*i,0,-0.5+0.5*i)
  719. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  720. --wt.C0 = CFrame.Angles(0, math.rad(-50)+math.rad(50*i), 0)
  721. end
  722. wld1.Part1 = Torso
  723. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,3.14,2.2) * CFrame.new(1.5,-1.7,-0.8)
  724. wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  725. for i = 0,1,0.1 do
  726. wait()
  727. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  728. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3+1-1+3-3*i,0,0)
  729. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  730. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  731. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  732. end
  733. elseif mode == "Sword" then
  734. for i = 0,1,0.1 do
  735. wait()
  736. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1*i,1.57) * CFrame.new(0,1,0)
  737. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  738. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3+1-1*i,0,0)
  739. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  740. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  741. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  742. end
  743. for i = 0,1,0.1 do
  744. wait()
  745. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7*i,-1*i,0) * CFrame.new(0,0,0)
  746. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  747. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3+1-1+3*i,0,0)
  748. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  749. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  750. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  751. end
  752. wld1.Part1 = Torso
  753. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,3.14,2.2) * CFrame.new(1.5,-1.7,-0.8)
  754. wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  755. for i = 0,1,0.1 do
  756. wait()
  757. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  758. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3+1-1+3-3*i,0,0)
  759. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  760. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  761. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  762. end
  763. end
  764. end
  765.  
  766. function equipanim()
  767. if mode == "Sword" then
  768. for i = 0,1,0.1 do
  769. wait()
  770. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  771. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,0)
  772. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  773. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  774. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  775. end
  776. wld1.Part1 = LeftArm
  777. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0)
  778. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7,-1,0) * CFrame.new(0,0,0)
  779. for i = 0,1,0.1 do
  780. wait()
  781. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  782. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.7*i,-1+1*i,0) * CFrame.new(0,0,0)
  783. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3*i,0,0)
  784. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  785. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  786. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  787. end
  788. for i = 0,1,0.1 do
  789. wait()
  790. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  791. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.7,-1+1,0) * CFrame.new(0,0,0)
  792. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3-0.2*i,0,0)
  793. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  794. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  795. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  796. end
  797. for i = 0,1,0.1 do
  798. wait()
  799. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1*i,1.57) * CFrame.new(0,1,0)
  800. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  801. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3-0.2+1.2*i,0,0)
  802. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  803. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  804. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  805. end
  806. elseif mode == "Gun" then
  807. for i = 0,1,0.1 do
  808. wait()
  809. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  810. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,0)
  811. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  812. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  813. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  814. end
  815. wld1.Part1 = LeftArm
  816. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0)
  817. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7,-1,0) * CFrame.new(0,0,0)
  818. point = true
  819. coroutine.resume(coroutine.create(function()
  820. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  821. bg.P = bg.P + 10000
  822. bg.Parent = Head
  823. while point == true do
  824. wait()
  825. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  826. bg.cframe = CFrame.new(Head.Position,pos4) * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) --CFrame.new(Torso.Position,MMouse.Hit.p) *
  827.  
  828. CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  829. offset=((Head.Position.y-MMouse.Hit.p.y)/60 )+0.02
  830. mag=(Head.Position-MMouse.Hit.p).magnitude/80
  831. offset=offset/mag
  832. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(offset,0,0)
  833.  
  834. end
  835. wait(0.25)
  836. bg.Parent = nil
  837. end))
  838. for i = 0,1,0.1 do
  839. wait()
  840. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5*i))
  841. wld1.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.7*i,-1+1*i,0) * CFrame.new(0,0,0)
  842. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5-3.5*i,-0.9*i,0)
  843. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  844. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1*i,0,-0.5*i)
  845. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  846. end
  847. end
  848. end
  849.  
  850. function StanceMode()
  851. attack=true
  852. Stance="NotFighting"
  853. for i=0,1,0.1 do
  854. wait()
  855. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+(1+3.14)*i,1.57) * CFrame.new(0,1,0)
  856. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1*i,0,-1*i)
  857. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  858. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  859. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  860. end
  861. for i=0,1,0.1 do
  862. wait()
  863. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5*i,1.57) * CFrame.new(0,1+0.3*i,0.5*i)
  864. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5*i,0*i,-1)
  865. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  866. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5*i)
  867. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  868. end
  869. attack=false
  870. end
  871.  
  872. function EndStance()
  873. attack=true
  874. Stance="Normal"
  875. for i=0,1,0.1 do
  876. wait()
  877. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.54-4.60*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5-0.5*i)
  878. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-0.5*i,0,-1+1*i)
  879. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  880. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  881. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  882. end
  883. attack=false
  884. end
  885.  
  886. function SpinAround()
  887. attack=true
  888. for i=0,1,0.1 do
  889. wait()
  890. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5+0.5*i)
  891. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-0.5*i,0,-1+1*i)
  892. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  893. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  894. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  895. end
  896. local b = Instance.new("BodyGyro")
  897. b.P=18000
  898. b.D=600
  899. b.maxTorque=Vector3.new(80000,80000000,80000)*50000000000000000000000000
  900. b.Parent = prt12
  901. b.cframe=prt12.CFrame
  902. bodypos=Instance.new("BodyPosition")
  903. bodypos.P=3000
  904. bodypos.D=100
  905. bodypos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  906. bodypos.position=prt12.Position
  907. bodypos.Parent=prt12
  908. for i=0,1,0.15 do
  909. wait()
  910. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5,1.57) * CFrame.new(0,1,0.2*i)
  911. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1+0.57*i,-1.57*i,-1+1)
  912. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  913. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,1*i)
  914. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  915. end
  916. con1=LeftLeg.Touched:connect(function(hit) Damagefunc2(hit,20,20) end)
  917. con2=RightLeg.Touched:connect(function(hit) Damagefunc2(hit,20,20) end)
  918. con3=Torso.Touched:connect(function(hit) Damagefunc2(hit,20,20) end)
  919. lightning = true
  920. Stun3(LeftLeg,0,-10,0,BrickColor.new("White"))
  921. while keyZ==true do
  922. wait()
  923. ss(0.8)
  924. for i=0,1,0.05 do
  925. wait()
  926. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5,1.57-math.rad(360)*i) * CFrame.new(0,1,0.2)
  927. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1+0.57,-1.57,-1+1)
  928. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  929. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,1)
  930. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  931. end
  932. end
  933. lightning=false
  934. con1:disconnect()
  935. con2:disconnect()
  936. con3:disconnect()
  937. for i=0,1,0.1 do
  938. wait()
  939. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5+0.5*i,1.57) * CFrame.new(0,1,0.2)
  940. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1+0.57-1*i,-1.57+1.57*i,-1+1)
  941. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  942. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,1-1*i)
  943. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  944. end
  945. wait(2)
  946. b:Remove()
  947. bodypos:Remove()
  948. attack=false
  949. end
  950.  
  951. function JumpStab()
  952. attack=true
  953. for i=0,1,0.1 do
  954. wait()
  955. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5,1.57) * CFrame.new(0,1+0.3,0.5)
  956. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1*i,0,-1)
  957. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  958. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5)
  959. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  960. end
  961. for i=0,1,0.1 do
  962. wait()
  963. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5,1.57) * CFrame.new(0,1+0.3,0.5)
  964. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1-0.1*i,0,-1)
  965. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  966. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5)
  967. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  968. end
  969. local b = Instance.new("BodyGyro")
  970. b.P=18000
  971. b.D=600
  972. b.maxTorque=Vector3.new(80000,80000000,80000)*50000000000000000000000000
  973. b.Parent = Head
  974. b.cframe=Head.CFrame
  975. bodypos=Instance.new("BodyPosition")
  976. bodypos.P=500
  977. bodypos.D=100
  978. bodypos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  979. bodypos.position=Head.Position
  980. bodypos.Parent=Head
  981. d=Instance.new("Part")
  982. d.Parent=workspace
  983. d.Anchored=true
  984. d.CFrame=Torso.CFrame*CFrame.new(0,50,-50)
  985. d.CanCollide=false
  986. bodypos.position=d.Position
  987. for i=0,1,0.1 do
  988. wait()
  989. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5)
  990. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1.1+2*i,0,-1+1*i)
  991. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  992. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0.5)
  993. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  994. end
  995. for i=0,1,0.1 do
  996. wait()
  997. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5,1.57) * CFrame.new(0,1,0.5)
  998. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1.1+2+0.1*i,0,-1+1)
  999. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1000. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1,0,0.5)
  1001. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1002. end
  1003. d.CFrame=Torso.CFrame*CFrame.new(0,-48,0)
  1004. bodypos.position=d.Position
  1005. for i=0,1,0.1 do
  1006. wait()
  1007. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.5+0.3*i,1.57) * CFrame.new(0,1+0.3*i,0.5)
  1008. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-1.1+2.1-1.1*i,0,-1+1)
  1009. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1010. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1,0,0.5)
  1011. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1012. end
  1013. wait(1)
  1014. d.Parent=nil
  1015. bodypos.Parent=nil
  1016. b.Parent=nil
  1017. attack=false
  1018. end
  1019.  
  1020. function EatMuffin() -- "Muffins" ~Derpy Hooves
  1021. if mode == "Sword" then
  1022. print("Muffins")
  1023. for i = 0,1,0.1 do
  1024. wait()
  1025. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0.3*i) * CFrame.new(0,0,-0.5)
  1026. RW.C0 = CFrame.new(1.5-0.5*i,0.5,0.5*i) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,-0.5*i)
  1027. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1028. end
  1029. local Muffin = Instance.new("Part")
  1030. Muffin.formFactor = 1
  1031. Muffin.CanCollide = false
  1032. Muffin.Name = "Muffin"
  1033. Muffin.Locked = true
  1034. Muffin.Size = Vector3.new(1,1,1)
  1035. Muffin.Parent = modelzorz
  1036. local Muffinmesh = Instance.new("SpecialMesh")
  1037. Muffinmesh.Parent = Muffin
  1038. Muffinmesh.MeshId = "http://www.roblox.com/asset/?id=23261119"
  1039. Muffinmesh.TextureId = "http://www.roblox.com/asset/?id=23261110"
  1040. Muffinmesh.Scale = Vector3.new(0.5,0.5,0.5)
  1041. local Muffinweld = Instance.new("Weld")
  1042. Muffinweld.Parent = Muffin
  1043. Muffinweld.Part0 = Muffin
  1044. Muffinweld.Part1 = RightArm
  1045. Muffinweld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(180)) * CFrame.new(0, 1, 0.5)
  1046. for i = 0,1,0.1 do
  1047. wait()
  1048. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.3+0.3*i,0,-0.5+0.5*i)
  1049. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1050. end
  1051. for i = 0,1,0.1 do
  1052. wait()
  1053. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0.3-0.3*i) * CFrame.new(0,0,-0.5)
  1054. RW.C0 = CFrame.new(1.5+0.1*i,0.5+0.2*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.9*i,0,-1.3*i)
  1055. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-0.5*i,0)
  1056. end
  1057. omnomnom(0.7)
  1058. for i = 0,1,0.1 do
  1059. wait(0.1)
  1060. Character.Humanoid.Health = Character.Humanoid.Health + 2
  1061. if mana < 400 then
  1062. mana = mana + 1
  1063. end
  1064. end
  1065. Muffin.Parent = nil
  1066. wait()
  1067. for i = 0,1,0.1 do
  1068. wait()
  1069. RW.C0 = CFrame.new(1.5+0.1-0.1*i,0.5+0.2-0.2*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.9-1.9*i,0,-1.3+1.3*i)
  1070. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-0.5+0.5*i,0)
  1071. end
  1072. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  1073. end
  1074. end
  1075.  
  1076. function onehit()
  1077. attack = true
  1078. for i = 0,1,0.1 do
  1079. wait()
  1080. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1081. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1082. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1*i,0,0)
  1083. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1084. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1085. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1086. end
  1087. ss(1)
  1088. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1089. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1090. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1091. for i = 0,1,0.2 do
  1092. wait()
  1093. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2*i,1.57) * CFrame.new(0,1,0)
  1094. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1095. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2*i,0,0)
  1096. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1097. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0)
  1098. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1099. end
  1100. con1:disconnect()
  1101. con2:disconnect()
  1102. con3:disconnect()
  1103. coroutine.resume(coroutine.create(function()
  1104. for i = 0,1,0.1 do
  1105. wait()
  1106. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2,1.57) * CFrame.new(0,1,0)
  1107. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1108. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2-0.2*i,0,0)
  1109. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1110. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1,0,0)
  1111. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1112. end
  1113. end))
  1114. attack = false
  1115. end
  1116.  
  1117. function twohit()
  1118. attack = true
  1119. for i = 0,1,0.1 do
  1120. wait()
  1121. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1*i,1.57) * CFrame.new(0,1,0)
  1122. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1123. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2,0,-1*i)
  1124. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3*i,0)
  1125. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-1+2.57*i,0,-1*i)
  1126. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1127. end
  1128. ss(1.1)
  1129. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1130. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1131. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1132. for i = 0,1,0.1 do
  1133. wait()
  1134. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2*i,1.57) * CFrame.new(0,1,0)
  1135. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1136. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1*i,0,-1+2*i)
  1137. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57*i,0)
  1138. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2*i)
  1139. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1140. end
  1141. con1:disconnect()
  1142. con2:disconnect()
  1143. con3:disconnect()
  1144. coroutine.resume(coroutine.create(function()
  1145. for i = 0,1,0.2 do
  1146. wait()
  1147. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2,1.57) * CFrame.new(0,1,0)
  1148. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1149. LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1,0,-1+2+0.2*i)
  1150. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57,0)
  1151. RW.C0 = CFrame.new(1.5-0.5+0.5,0.5,-0.5+0.5) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2+0.2*i)
  1152. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1153. end
  1154. end))
  1155. attack = false
  1156. end
  1157.  
  1158. function threehit()
  1159. attack = true
  1160. for i = 0,1,0.1 do
  1161. wait()
  1162. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1*i,1.57) * CFrame.new(0,1,0)
  1163. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1164. LW.C0 = CFrame.new(-1.5+0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1,0,-1+2)
  1165. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14*i,0)
  1166. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2)
  1167. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1168. end
  1169. ss(0.9)
  1170. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1171. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1172. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1173. for i = 0,1,0.2 do
  1174. wait()
  1175. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1,1.57) * CFrame.new(0,1,0)
  1176. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1177. LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1,0,-1+2-2.5*i)
  1178. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14,0)
  1179. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2-2*i)
  1180. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1181. end
  1182. con1:disconnect()
  1183. con2:disconnect()
  1184. con3:disconnect()
  1185. coroutine.resume(coroutine.create(function()
  1186. for i = 0,1,0.1 do
  1187. wait()
  1188. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1,1.57) * CFrame.new(0,1,0)
  1189. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1190. LW.C0 = CFrame.new(-1.5+0.5-0.5,0.5,-0.5+0.5) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1,0,-1+2-2.5-0.2*i)
  1191. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14,0)
  1192. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-1+2.57,0,-1+2-2-0.2*i)
  1193. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1194. end
  1195. end))
  1196. attack = false
  1197. end
  1198.  
  1199. function fourhit()
  1200. attack = true
  1201. for i = 0,1,0.1 do
  1202. wait()
  1203. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1-1*i,1.57) * CFrame.new(0,1,0)
  1204. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1205. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1+1*i,0,-1+2-2.5+1.5*i)
  1206. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14-1.57*i,0)
  1207. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-1+2.57+0.5*i,0,-1+2-2)
  1208. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1209. end
  1210. ss(1.2)
  1211. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1212. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1213. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1214. for i = 0,1,0.2 do
  1215. wait()
  1216. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+2-1-1+1*i,1.57) * CFrame.new(0,1,0)
  1217. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2+1+1-2*i,0,-1+2-2.5+1.5)
  1218. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-3+1.57+3.14-1.57,0)
  1219. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-1+2.57+0.5-2.07*i,0,-1+2-2+1*i)
  1220. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1221. end
  1222. con1:disconnect()
  1223. con2:disconnect()
  1224. con3:disconnect()
  1225. attack = false
  1226. end
  1227.  
  1228. function HeavySlashOne()
  1229. attack = true
  1230. for i = 0,1,0.1 do
  1231. wait()
  1232. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2*i,1.57) * CFrame.new(0,1,0)
  1233. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1*i,0,0)
  1234. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1235. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1236. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1237. end
  1238. ss(0.9)
  1239. local vel = Instance.new("BodyGyro")
  1240. vel.Parent = Torso
  1241. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1242. vel.P = 20e+003
  1243. CF = Torso.CFrame
  1244. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1245. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1246. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1247. for i = 0,1,0.1 do
  1248. wait()
  1249. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2+0.5*i,1.57) * CFrame.new(0,1,0)
  1250. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1*i)
  1251. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1+1*i,0,-1*i)
  1252. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1253. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1254. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1255. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-1*i,0)
  1256. end
  1257. vel.Parent = nil
  1258. wait(0.2)
  1259. con1:disconnect()
  1260. con2:disconnect()
  1261. con3:disconnect()
  1262. coroutine.resume(coroutine.create(function()
  1263. for i = 0,1,0.1 do
  1264. wait()
  1265. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2+0.5-0.5*i,1.57) * CFrame.new(0,1,0)
  1266. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1)
  1267. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1+1-0.5*i,0,-1+0.5*i)
  1268. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1269. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1270. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1271. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-1,0)
  1272. end
  1273. wait(0.2)
  1274. if attack == false then
  1275. combo = 0
  1276. end
  1277. end))
  1278. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1279. attack = false
  1280. end
  1281.  
  1282. function HeavySlashTwo()
  1283. attack = true
  1284. for i = 0,1,0.1 do
  1285. wait()
  1286. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2+0.5,1.57) * CFrame.new(0,1,0)
  1287. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1)
  1288. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1+1,0,-1+1*i)
  1289. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1290. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1291. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1292. end
  1293. wait(0.3)
  1294. attack = false
  1295. end
  1296.  
  1297. function SpinSlash()
  1298. attack = true
  1299. for i = 0,1,0.1 do
  1300. wait()
  1301. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2*i,1.57) * CFrame.new(0,1,0)
  1302. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57*i,0)
  1303. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0)
  1304. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1*i)
  1305. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1306. end
  1307. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,10,15) end)
  1308. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  1309. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,10,5) end)
  1310. ss(1.1)
  1311. local vel = Instance.new("BodyGyro")
  1312. vel.Parent = Torso
  1313. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1314. vel.P = 20e+003
  1315. CF = Torso.CFrame
  1316. for i = 0,1,0.1 do
  1317. wait()
  1318. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2,1.57) * CFrame.new(0,1,0)
  1319. LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1320. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1+2*i,0,0)
  1321. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1-2*i)
  1322. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1323. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0)
  1324. end
  1325. wait(0.1)
  1326. coroutine.resume(coroutine.create(function()
  1327. wait(0.5)
  1328. if attack == false then
  1329. combo = 0
  1330. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1331. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  1332. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1333. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1334. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1335. end
  1336. end))
  1337. con1:disconnect()
  1338. con2:disconnect()
  1339. con3:disconnect()
  1340. vel.Parent = nil
  1341. attack = false
  1342. end
  1343.  
  1344. function WaveStab()
  1345. attack = true
  1346. local vel = Instance.new("BodyGyro")
  1347. vel.Parent = Torso
  1348. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1349. vel.P = 20e+003
  1350. CF = Torso.CFrame
  1351. for i = 0,1,0.1 do
  1352. wait()
  1353. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  1354. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-1*i)
  1355. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1*i,1.57+3.14*i) * CFrame.new(0,1,0)
  1356. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1*i,-2.5*i,0)
  1357. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1358. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1*i)
  1359. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1360. end
  1361. ss(1)
  1362. for i = 0,1,0.2 do
  1363. wait()
  1364. --vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  1365. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-1)
  1366. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1,1.57+3.14) * CFrame.new(0,1,0)
  1367. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-1*i,-2.5+0.3*i,0)
  1368. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1369. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57-0.5*i,0,-1+0.3*i)
  1370. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1371. end
  1372. EVENMOARMAGIX(Head,2,7,2,0,-4,-6,0,0,0,BrickColor.new("White"))
  1373. boomsound(3)
  1374. local testbrick = Instance.new("Part")
  1375. testbrick.Parent = modelzorz
  1376. testbrick.Anchored = true
  1377. testbrick.Transparency = 1
  1378. testbrick.CFrame = Head.CFrame * CFrame.new(0,0,-6)
  1379. coroutine.resume(coroutine.create(function()
  1380. local c = game.Workspace:GetChildren();
  1381. for i = 1, #c do
  1382. local hum = c[i]:findFirstChild("Humanoid")
  1383. if hum ~= nil and hum.Health ~= 0 then
  1384. local head = c[i]:findFirstChild("Head");
  1385. if head ~= nil then
  1386. local targ = head.Position - testbrick.Position;
  1387. local mag = targ.magnitude;
  1388. if mag <= 4 and c[i].Name ~= Player.Name then
  1389. DBHit(head,testbrick,math.random(5,10))
  1390. end
  1391. end
  1392. end
  1393. end
  1394. end))
  1395. testbrick.Parent = nil
  1396. wait(0.1)
  1397. EVENMOARMAGIX(Head,2,7,2,4,-4,-8,0,0,0,BrickColor.new("White"))
  1398. boomsound(3)
  1399. local testbrick = Instance.new("Part")
  1400. testbrick.Parent = modelzorz
  1401. testbrick.Anchored = true
  1402. testbrick.Transparency = 1
  1403. testbrick.CFrame = Head.CFrame * CFrame.new(4,0,-8)
  1404. coroutine.resume(coroutine.create(function()
  1405. local c = game.Workspace:GetChildren();
  1406. for i = 1, #c do
  1407. local hum = c[i]:findFirstChild("Humanoid")
  1408. if hum ~= nil and hum.Health ~= 0 then
  1409. local head = c[i]:findFirstChild("Head");
  1410. if head ~= nil then
  1411. local targ = head.Position - testbrick.Position;
  1412. local mag = targ.magnitude;
  1413. if mag <= 4 and c[i].Name ~= Player.Name then
  1414. DBHit(head,testbrick,math.random(5,10))
  1415. end
  1416. end
  1417. end
  1418. end
  1419. end))
  1420. testbrick.Parent = nil
  1421. EVENMOARMAGIX(Head,2,7,2,-4,-4,-8,0,0,0,BrickColor.new("White"))
  1422. boomsound(3)
  1423. local testbrick = Instance.new("Part")
  1424. testbrick.Parent = modelzorz
  1425. testbrick.Anchored = true
  1426. testbrick.Transparency = 1
  1427. testbrick.CFrame = Head.CFrame * CFrame.new(-4,0,-8)
  1428. coroutine.resume(coroutine.create(function()
  1429. local c = game.Workspace:GetChildren();
  1430. for i = 1, #c do
  1431. local hum = c[i]:findFirstChild("Humanoid")
  1432. if hum ~= nil and hum.Health ~= 0 then
  1433. local head = c[i]:findFirstChild("Head");
  1434. if head ~= nil then
  1435. local targ = head.Position - testbrick.Position;
  1436. local mag = targ.magnitude;
  1437. if mag <= 4 and c[i].Name ~= Player.Name then
  1438. DBHit(head,testbrick,math.random(5,10))
  1439. end
  1440. end
  1441. end
  1442. end
  1443. end))
  1444. testbrick.Parent = nil
  1445. wait(0.2)
  1446. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1447. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1448. vel.Parent = nil
  1449. attack = false
  1450. end
  1451.  
  1452. function DarkSlash()
  1453. if mana >= 80 then
  1454. attack = true
  1455. for i = 0,1,0.1 do
  1456. wait()
  1457. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1458. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1*i,1.57) * CFrame.new(0,1,0)
  1459. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57*i,0)
  1460. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1461. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,-1.57*i,0)
  1462. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1463. end
  1464. lightning = true
  1465. coroutine.resume(coroutine.create(function()
  1466. coroutine.resume(coroutine.create(function()
  1467. while lightning == true do
  1468. wait()
  1469. mana = mana - 2
  1470. end
  1471. end))
  1472. Stun2(prt12,20,40,20,BrickColor.new("Black"))
  1473. end))
  1474. wait(0.2)
  1475. for i = 0,1,0.1 do
  1476. wait()
  1477. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1478. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1,1.57) * CFrame.new(0,1,0)
  1479. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57-0.5*i,0)
  1480. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1481. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1482. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1483. end
  1484. ss(0.8)
  1485. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
  1486. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,60,15) end)
  1487. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,30,15) end)
  1488. local vel = Instance.new("BodyGyro")
  1489. vel.Parent = Torso
  1490. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1491. vel.P = 20e+003
  1492. CF = Torso.CFrame
  1493. for i = 0,1,0.05 do
  1494. wait()
  1495. vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0)
  1496. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1497. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1+3.14*i,1.57) * CFrame.new(0,1,0)
  1498. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57-0.5,0)
  1499. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2*i,0,0)
  1500. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1501. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0)
  1502. end
  1503. vel.Parent = nil
  1504. wait(0.2)
  1505. con1:disconnect()
  1506. con2:disconnect()
  1507. con3:disconnect()
  1508. wait(0.3)
  1509. lightning = false
  1510. attack = false
  1511. skillcombo=1
  1512. coroutine.resume(coroutine.create(function()
  1513. wait(0.5)
  1514. skillcombo=0
  1515. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1516. end))
  1517. end
  1518. end
  1519.  
  1520. function LightSlash()
  1521. if mana >= 50 then
  1522. attack = true
  1523. lightning = true
  1524. coroutine.resume(coroutine.create(function()
  1525. coroutine.resume(coroutine.create(function()
  1526. while lightning == true do
  1527. wait()
  1528. mana = mana - 1
  1529. end
  1530. end))
  1531. Stun2(prt12,20,40,20,BrickColor.new("White"))
  1532. end))
  1533. for i = 0,1,0.1 do
  1534. wait()
  1535. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1+3.14,1.57) * CFrame.new(0,1,0)
  1536. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57-0.5,0)
  1537. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2+0.2*i,0,0)
  1538. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1539. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  1540. end
  1541. ss(0.8)
  1542. con1=prt12.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
  1543. con2=prt13.Touched:connect(function(hit) Damagefunc1(hit,60,15) end)
  1544. con3=prt7.Touched:connect(function(hit) Damagefunc1(hit,30,15) end)
  1545. for i = 0,1,0.05 do
  1546. wait()
  1547. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+1+3.14-3*i,1.57) * CFrame.new(0,1,0)
  1548. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,-1.57-0.5,0)
  1549. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.2-3.2*i,0,0)
  1550. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(1.57,-1.57,0)
  1551. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  1552. end
  1553. con1:disconnect()
  1554. con2:disconnect()
  1555. con3:disconnect()
  1556. wait(1)
  1557. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  1558. lightning = false
  1559. attack = false
  1560. end
  1561. end
  1562.  
  1563. function Shoot(mouse)
  1564. spread2 = 0
  1565. range2 = 500
  1566. rangepower = 10
  1567. if shot=="Dark" then
  1568. if blackhole==true then
  1569. return
  1570. end
  1571. end
  1572. attack = true
  1573. if mana >= 10 then
  1574. lasersound(2)
  1575. coroutine.resume(coroutine.create(function()
  1576. if alt==0 then
  1577. if shot == "Normal" then
  1578. mana = mana - 10
  1579. elseif shot == "Explode" then
  1580. mana = mana - 40
  1581. elseif shot == "Bomb" then
  1582. mana = mana - 30
  1583. elseif shot == "Dark" then
  1584. mana = mana - 100
  1585. end
  1586. shoottrail2(mouse)
  1587. elseif alt==1 then
  1588. if shot == "Normal" then
  1589. mana = mana - 50
  1590. elseif shot == "Explode" then
  1591. mana = mana - 40
  1592. elseif shot == "Bomb" then
  1593. mana = mana - 30
  1594. elseif shot == "Dark" then
  1595. mana = mana - 100
  1596. end
  1597. if shot=="Normal" then
  1598. for i = 1,5 do
  1599. coroutine.resume(coroutine.create(function()
  1600. shoottrail2(mouse)
  1601. end))
  1602. end
  1603. else
  1604. shoottrail2(mouse)
  1605. end
  1606. end
  1607. end))
  1608. end
  1609. if aiming == true then
  1610. for i = 0,1,0.2 do
  1611. wait()
  1612. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  1613. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1614. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(-offset,0,0)
  1615. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+0.3*i,-0.9,0.2*i)
  1616. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1617. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5+0.3*i,0,-0.5)
  1618. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1619. end
  1620. for i = 0,1,0.2 do
  1621. wait()
  1622. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  1623. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1624. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(-offset,0,0)
  1625. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+0.3-0.3*i,-0.9,0.2-0.2*i)
  1626. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1627. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5+0.3-0.3*i,0,-0.5)
  1628. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1629. end
  1630. else
  1631. for i = 0,1,0.2 do
  1632. wait()
  1633. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  1634. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1635. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  1636. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+0.3*i,-0.9,0.2*i)
  1637. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1638. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5+0.3*i,0,-0.5)
  1639. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1640. end
  1641. for i = 0,1,0.2 do
  1642. wait()
  1643. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1,1.57) * CFrame.new(0,1,0)
  1644. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1645. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  1646. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+0.3-0.3*i,-0.9,0.2-0.2*i)
  1647. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1648. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5+0.3-0.3*i,0,-0.5)
  1649. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1650. end
  1651. end
  1652. attack = false
  1653. end
  1654.  
  1655. function Aim(mouse)
  1656. if mode == "Gun" and point == true and aiming == false then
  1657. aiming = true
  1658. while aiming == true and point == true do
  1659. wait()
  1660. offset=(Torso.Position.y-mouse.Hit.p.y)/60
  1661. mag=(Torso.Position-mouse.Hit.p).magnitude/80
  1662. offset=offset/mag
  1663. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1664. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(-offset,0,0)
  1665. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57,-0.9,0)
  1666. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1667. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5,0,-0.5)
  1668. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset,0,0)
  1669. end
  1670. else
  1671. aiming = false
  1672. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1673. Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  1674. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57,-0.9,0)
  1675. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1676. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(-0.5+1.5,0,-0.5)
  1677. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1678. while aiming == false do
  1679. wait()
  1680. offset = 0
  1681. end
  1682. end
  1683. end
  1684.  
  1685. function Switch(mouse)
  1686. attack = true
  1687. if mode == "Sword" then
  1688. point = true
  1689. equipsound(0.5)
  1690. mode = "Gun"
  1691. for i = 0,1,0.1 do
  1692. wait()
  1693.  
  1694. msh12.Scale = Vector3.new(0.8-0.5*i,1-0.5*i,0.3-0.1*i)
  1695. msh13.Scale = Vector3.new(1-0.5*i,1-0.5*i,0.1-0.05*i)
  1696. msh14.Scale = Vector3.new(0.3-0.1*i,0.5-0.3*i,0.5-0.3*i)
  1697. msh15.Scale = Vector3.new(0.5-0.25*i,0.8-0.5*i,0.5-0.25*i)
  1698. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,-3.14*i) * CFrame.new(-0.8*i,3-3*i,0)
  1699. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,-3.14*i) * CFrame.new(-0.8*i,3-3*i,0)
  1700. wld14.C0 = CFrame.fromEulerAnglesXYZ(-0.86,1.57,0) * CFrame.new(0,1.8-0.9*i,0)
  1701. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1+0.6*i,0)
  1702.  
  1703. msh16.Scale = Vector3.new(0.9+0.7*i,0.9+0.4*i,0.9+0.7*i)
  1704. msh17.Scale = Vector3.new(0.6+0.5*i,0.6+0.5*i,0.6+0.5*i)
  1705. msh18.Scale = Vector3.new(0.5+0.5*i,0.9+0.5*i,0.5+0.5*i)
  1706. msh19.Scale = Vector3.new(0.3+0.5*i,0.91+0.5*i,0.3+0.5*i)
  1707. msh20.Scale = Vector3.new(0.1+0.2*i,0.7+0.5*i,0.1+0.2*i)
  1708. msh21.Scale = Vector3.new(0.1+0.2*i,0.7+0.5*i,0.1+0.2*i)
  1709. msh22.Scale = Vector3.new(0.1+0.2*i,0.7+0.5*i,0.1+0.2*i)
  1710. msh23.Scale = Vector3.new(0.1+0.2*i,0.7+0.5*i,0.1+0.2*i)
  1711. wld16.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.3+0.3*i) * CFrame.new(-0.6+0.6*i,1.9*i,0)
  1712. wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6+0.3*i,0)
  1713. wld18.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5+0.6*i,0)
  1714. wld19.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1715. wld20.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.3-0.3*i,1+0.8*i,0)
  1716. wld21.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.3+0.3*i,1+0.8*i,0)
  1717. wld22.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1+0.8*i,-0.3-0.3*i)
  1718. wld23.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1+0.8*i,0.3+0.3*i)
  1719.  
  1720. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2*i,1.57) * CFrame.new(0,1,0)
  1721. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1722. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1*i,0,0)
  1723. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1724. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1725. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1726. end
  1727. for i = 0,1,0.1 do
  1728. wait()
  1729. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1*i,1.57) * CFrame.new(0,1,0)
  1730. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-60*i))
  1731. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57*i,-0.9*i,0)
  1732. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1733. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+1.5*i,0,-0.5*i)
  1734. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1735. --wt.C0 = CFrame.Angles(0, math.rad(-51.5*i), 0)
  1736. end
  1737. coroutine.resume(coroutine.create(function()
  1738. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1739. bg.P = bg.P + 10000
  1740. bg.Parent = Torso
  1741. while point == true do
  1742. wait()
  1743. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1744. bg.cframe = CFrame.new(Torso.Position,pos4) * CFrame.fromEulerAnglesXYZ(0,1,0) * CFrame.new(0,0,0) --CFrame.new(Torso.Position,MMouse.Hit.p) *
  1745.  
  1746. CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1747. offset=((Head.Position.y-MMouse.Hit.p.y)/60 )+0.02
  1748. mag=(Head.Position-MMouse.Hit.p).magnitude/80
  1749. offset=offset/mag
  1750. if aiming == true then
  1751. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(-offset,0,math.rad(-51.5))
  1752. else
  1753. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,math.rad(-51.5))
  1754. end
  1755. end
  1756. wait(0.25)
  1757. bg.Parent = nil
  1758. end))
  1759. elseif mode == "Gun" then
  1760. point = false
  1761. equipsound(0.8)
  1762. mode = "Sword"
  1763. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1764. RW.Part0 = Torso
  1765. LW.Part0 = Torso
  1766. Torso.Transparency = 0
  1767. RHL.Part0 = Torso
  1768. LHL.Part0 = Torso
  1769. T.Parent = nil
  1770. for i = 0,1,0.1 do
  1771. wait()
  1772.  
  1773. msh12.Scale = Vector3.new(0.8-0.5+0.5*i,1-0.5+0.5*i,0.3-0.1+0.1*i)
  1774. msh13.Scale = Vector3.new(1-0.5+0.5*i,1-0.5+0.5*i,0.1-0.05+0.05*i)
  1775. msh14.Scale = Vector3.new(0.3-0.1+0.1*i,0.5-0.3+0.3*i,0.5-0.3+0.3*i)
  1776. msh15.Scale = Vector3.new(0.5-0.25+0.25*i,0.8-0.5+0.5*i,0.5-0.25+0.25*i)
  1777. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,-3.14+3.14*i) * CFrame.new(-0.8+0.8*i,3-3+3*i,0)
  1778. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,-3.14+3.14*i) * CFrame.new(-0.8+0.8*i,3-3+3*i,0)
  1779. wld14.C0 = CFrame.fromEulerAnglesXYZ(-0.86,1.57,0) * CFrame.new(0,1.8-0.9+0.9*i,0)
  1780. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1+0.6-0.6*i,0)
  1781.  
  1782. msh16.Scale = Vector3.new(0.9+0.7-0.7*i,0.9+0.4-0.4*i,0.9+0.7-0.7*i)
  1783. msh17.Scale = Vector3.new(0.6+0.5-0.5*i,0.6+0.5-0.5*i,0.6+0.5-0.5*i)
  1784. msh18.Scale = Vector3.new(0.5+0.5-0.5*i,0.9+0.5-0.5*i,0.5+0.5-0.5*i)
  1785. msh19.Scale = Vector3.new(0.3+0.5-0.5*i,0.91+0.5-0.5*i,0.3+0.5-0.5*i)
  1786. msh20.Scale = Vector3.new(0.1+0.2-0.2*i,0.7+0.5-0.5*i,0.1+0.2-0.2*i)
  1787. msh21.Scale = Vector3.new(0.1+0.2-0.2*i,0.7+0.5-0.5*i,0.1+0.2-0.2*i)
  1788. msh22.Scale = Vector3.new(0.1+0.2-0.2*i,0.7+0.5-0.5*i,0.1+0.2-0.2*i)
  1789. msh23.Scale = Vector3.new(0.1+0.2-0.2*i,0.7+0.5-0.5*i,0.1+0.2-0.2*i)
  1790. wld16.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.3+0.3-0.3*i) * CFrame.new(-0.6+0.6-0.6*i,1.9-1.9*i,0)
  1791. wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6+0.3-0.3*i,0)
  1792. wld18.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5+0.6-0.6*i,0)
  1793. wld19.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1794. wld20.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.3-0.3+0.3*i,1+0.8-0.8*i,0)
  1795. wld21.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.3+0.3-0.3*i,1+0.8-0.8*i,0)
  1796. wld22.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1+0.8-0.8*i,-0.3-0.3+0.3*i)
  1797. wld23.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1+0.8-0.8*i,0.3+0.3-0.3*i)
  1798.  
  1799. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+1*i,1.57) * CFrame.new(0,1,0)
  1800. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1801. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+2.57*i,-0.9+0.9*i,0)
  1802. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1803. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+1.5-1.5*i,0,-0.5+0.5*i)
  1804. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1805. end
  1806. for i = 0,1,0.1 do
  1807. wait()
  1808. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1+2-1+1-2*i,1.57) * CFrame.new(0,1,0)
  1809. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1810. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-2.57+2.57-1*i,0,0)
  1811. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1812. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1813. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1814. end
  1815. end
  1816. attack = false
  1817. for i=0,1,0.1 do
  1818. wait()
  1819. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1820. end
  1821. end
  1822.  
  1823. function changeitemleft()
  1824. if Number > 1 then
  1825. Number = Number - 1
  1826. shot = Item[Number]
  1827. end
  1828. end
  1829.  
  1830. function changeitemright()
  1831. if Number < #Item then
  1832. Number = Number + 1
  1833. shot = Item[Number]
  1834. end
  1835. end
  1836.  
  1837. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1838. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1839. end
  1840.  
  1841. Stun2=function(Feh,x,y,z,color)
  1842. coroutine.resume(coroutine.create(function(part)
  1843. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  1844. return
  1845. end]]
  1846. Torsoh2=part
  1847. End2=Torsoh2.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  1848. ST2=Torsoh2.Position
  1849. --[[ p=Instance.new("BodyPosition")
  1850. p.P=3000
  1851. p.D=100
  1852. p.maxForce=Vector3.new(math.huge,0,math.huge)
  1853. p.position=Torsoh2.Position
  1854. p.Parent=Torsoh2]]
  1855. while part.Parent ~= nil and lightning == true do
  1856. -- f1:Play()
  1857. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  1858. Start2=End2
  1859. End2=Torsoh2.CFrame*CFrame.new(math.random(-x,x)/10,math.random(-y,y)/10,math.random(-z,z)/10)
  1860. e=Instance.new("Part")
  1861. e.TopSurface=0
  1862. e.BottomSurface=0
  1863. e.CanCollide=false
  1864. e.Anchored=true
  1865. e.formFactor="Symmetric"
  1866. e.Size=Vector3.new(1,1,1)
  1867. Look2=(End2.p-Start2.p).unit
  1868. m=Instance.new("BlockMesh")
  1869. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  1870. m.Parent=e
  1871. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  1872. e.Reflectance=.3
  1873. e.Name="Zap"
  1874. e.BrickColor=color
  1875. e.Parent=part.Parent
  1876. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  1877. wait()
  1878. end
  1879. wait(.45)
  1880. -- p.Parent=nil
  1881. end),Feh)
  1882. end
  1883.  
  1884. Stun3=function(Feh,x,y,z,color)
  1885. coroutine.resume(coroutine.create(function(part)
  1886. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  1887. return
  1888. end]]
  1889. Torsoh2=part
  1890. End2=Torsoh2.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  1891. ST2=Torsoh2.Position
  1892. --[[ p=Instance.new("BodyPosition")
  1893. p.P=3000
  1894. p.D=100
  1895. p.maxForce=Vector3.new(math.huge,0,math.huge)
  1896. p.position=Torsoh2.Position
  1897. p.Parent=Torsoh2]]
  1898. while part.Parent ~= nil and lightning == true do
  1899. -- f1:Play()
  1900. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  1901. Start2=End2
  1902. End2=Torsoh2.CFrame*CFrame.new(math.random(-x,x)/10,y/10,math.random(-z,z)/10)
  1903. e=Instance.new("Part")
  1904. e.TopSurface=0
  1905. e.BottomSurface=0
  1906. e.CanCollide=false
  1907. e.Anchored=true
  1908. e.formFactor="Symmetric"
  1909. e.Size=Vector3.new(3,3,1)
  1910. Look2=(End2.p-Start2.p).unit
  1911. m=Instance.new("BlockMesh")
  1912. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  1913. m.Parent=e
  1914. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  1915. e.Reflectance=.3
  1916. e.Name="Zap"
  1917. e.BrickColor=color
  1918. e.Parent=part.Parent
  1919. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  1920. wait()
  1921. end
  1922. wait(.45)
  1923. -- p.Parent=nil
  1924. end),Feh)
  1925. end
  1926.  
  1927. function shoottrail2(mouse)
  1928. spread2 = 0
  1929. range2 = 500
  1930. rangepower = 10
  1931. if alt==1 then
  1932. if shot == "Normal" then
  1933. spread2 = 50
  1934. range2 = 100
  1935. end
  1936. end
  1937. local spreadvector = (Vector3.new(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (prt19.Position).magnitude/100
  1938. local dir = Head.CFrame.lookVector+spreadvector
  1939. local hit2,pos = rayCast(prt19.Position,dir,10,Character)
  1940. local rangepos = range2
  1941. local function drawtrail(From,To)
  1942. local effectsmsh = Instance.new("CylinderMesh")
  1943. effectsmsh.Scale = Vector3.new(1,1,1)
  1944. effectsmsh.Name = "Mesh"
  1945. local effectsg = Instance.new("Part")
  1946. effectsg.formFactor = 3
  1947. effectsg.CanCollide = false
  1948. effectsg.Name = "Eff"
  1949. effectsg.Locked = true
  1950. effectsg.Anchored = true
  1951. effectsg.Size = Vector3.new(1,0.2,1)
  1952. effectsg.Parent = Character
  1953. effectsmsh.Parent = effectsg
  1954. effectsg.BrickColor = BrickColor.new("white")
  1955. if shot == "Dark" then
  1956. effectsg.BrickColor = BrickColor.new("Black")
  1957. end
  1958. effectsg.Reflectance = 0.25
  1959. local LP = From
  1960. local point1 = To
  1961. local mg = (LP - point1).magnitude
  1962. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  1963. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1964. coroutine.resume(coroutine.create(function()
  1965. for i = 0 , 1 , 0.2 do
  1966. wait()
  1967. effectsg.Transparency = 1*i
  1968. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  1969. end
  1970. effectsg.Parent = nil
  1971. end))
  1972. end
  1973. local newpos = prt19.Position
  1974. local inc = rangepower
  1975. repeat
  1976. wait()
  1977. rangepos = rangepos - 10
  1978. dir = dir
  1979. --[[if alt==1 then
  1980. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  1981. end ]]
  1982. hit2,pos = rayCast(newpos,dir,inc,Character)
  1983. drawtrail(newpos,pos)
  1984. newpos = newpos + (dir * inc)
  1985. if alt==1 then
  1986. inc = 10
  1987. if inc >= 20 then
  1988. inc = inc - 10
  1989. end
  1990. end
  1991. if hit2 ~= nil then
  1992. rangepos = 0
  1993. end
  1994. until rangepos <= 0
  1995. if hit2 ~= nil then
  1996. local effectsmsh = Instance.new("SpecialMesh")
  1997. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1998. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  1999. effectsmsh.Scale = Vector3.new(3,3,3)
  2000. local effectsg = Instance.new("Part")
  2001. effectsg.formFactor = 3
  2002. effectsg.CanCollide = false
  2003. effectsg.Name = "Arrow"
  2004. effectsg.Locked = true
  2005. effectsg.Transparency = 1
  2006. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  2007. effectsg.Parent = modelzorz
  2008. effectsg.BrickColor = BrickColor.new("white")
  2009. if shot == "Dark" then
  2010. effectsg.BrickColor = BrickColor.new("Black")
  2011. end
  2012. effectsmsh.Parent = effectsg
  2013. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  2014. local efwel = Instance.new("Weld")
  2015. efwel.Parent = effectsg
  2016. efwel.Part0 = effectsg
  2017. efwel.Part1 = hit2
  2018. coroutine.resume(coroutine.create(function()
  2019. if shot == "Explode" then
  2020. --mana = mana - 50
  2021. boomsound(1)
  2022. coroutine.resume(coroutine.create(function()
  2023. if workspace:findFirstChild("GridModel") ~= nil then
  2024. local c = game.Workspace.GridModel:GetChildren();
  2025. for i = 1, #c do
  2026. if c[i].className == "Part" then
  2027. local targ = c[i].Position - effectsg.Position;
  2028. local mag = targ.magnitude;
  2029. if mag <= 8 then
  2030. c[i].Parent = nil
  2031. end
  2032. end
  2033. end
  2034. end
  2035. local c = game.Workspace:GetChildren();
  2036. for i = 1, #c do
  2037. local hum = c[i]:findFirstChild("Humanoid")
  2038. if hum ~= nil and hum.Health ~= 0 then
  2039. local head = c[i]:findFirstChild("Head");
  2040. if head ~= nil then
  2041. local targ = head.Position - effectsg.Position;
  2042. local mag = targ.magnitude;
  2043. if mag <= 15 then
  2044. wait()
  2045. DBHit(head,effectsg,20)
  2046. end
  2047. end
  2048. end
  2049. --[[ local c = game.Workspace:GetChildren();
  2050. for i = 1, #c do
  2051. if c[i].className=="Part" then
  2052. local targ = c[i].Position - effectsg.Position;
  2053. local mag = targ.magnitude;
  2054. if mag <= 15 then
  2055. wait()
  2056. c[i]:BreakJoints()
  2057. end
  2058. end
  2059. if c[i]:findFirstChild("Part")~=nil then
  2060. local targ = c[i]:findFirstChild("Part").Position - effectsg.Position;
  2061. local mag = targ.magnitude;
  2062. if mag <= 15 then
  2063. wait()
  2064. c[i]:BreakJoints()
  2065. end
  2066. end
  2067. end ]]
  2068. end
  2069. end))
  2070. EVENMOARMAGIX(effectsg,10,8,10,0,0,0,0,0,0,BrickColor.new("White"))
  2071. for i = 0,5 do
  2072. wait()
  2073. MMMAGIC(effectsg,8,8,8,0,0,0,BrickColor.new("White"))
  2074. end
  2075. elseif shot=="Dark" then
  2076. --mana=mana-70
  2077. --1529460
  2078. coroutine.resume(coroutine.create(function(Part,Mesh)
  2079. local Mesh = Instance.new("SpecialMesh")
  2080. Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  2081. Mesh.MeshType = "Sphere"
  2082. -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  2083. Part=Instance.new("Part")
  2084. Part.Name="Effect"
  2085. Part.formFactor=0
  2086. Part.Size=Vector3.new(1,1,1)
  2087. Part.BrickColor=BrickColor.new("Black")
  2088. Part.Reflectance = 0
  2089. Part.TopSurface=0
  2090. Part.BottomSurface=0
  2091. Part.Transparency=0
  2092. Part.Anchored=true
  2093. Part.CanCollide=false
  2094. Part.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  2095. Part.Parent=Character
  2096. Mesh.Parent = Part
  2097. lol=true
  2098. coroutine.resume(coroutine.create(function()
  2099. DarkRiftF(Part)
  2100. end))
  2101. DemMags=1
  2102. for i=0,200 do
  2103. wait()
  2104. DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Black"))
  2105. blackhole=true
  2106. DemMags=DemMags+0.2
  2107. Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  2108. Part.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2109. end
  2110. fff=200
  2111. for i=0,100 do
  2112. wait()
  2113. DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Black"))
  2114. Part.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2115. end
  2116. for i=0,1,0.05 do
  2117. wait()
  2118. Part.Transparency=Part.Transparency+0.05
  2119. Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  2120. end
  2121. lol=false
  2122. Part.Parent=nil
  2123. blackhole=false
  2124. end),nil,nil)
  2125. elseif shot == "Bomb" then
  2126. --mana = mana - 20
  2127. coroutine.resume(coroutine.create(function(him)
  2128. coroutine.resume(coroutine.create(function()
  2129. for i=0,1,0.01 do
  2130. wait()
  2131. local c = game.Workspace:GetChildren();
  2132. for i = 1, #c do
  2133. local hum = c[i]:findFirstChild("Humanoid")
  2134. if hum ~= nil and hum.Health ~= 0 then
  2135. local head = c[i]:findFirstChild("Head");
  2136. if head ~= nil then
  2137. local targ = head.Position - effectsg.Position;
  2138. local mag = targ.magnitude;
  2139. if mag <= 15 then
  2140. wait()
  2141. him=true
  2142. end
  2143. end
  2144. end
  2145. end
  2146. end
  2147. him = true
  2148. end))
  2149. while him == false do
  2150. wait(0.1)
  2151. MMMAGIC(effectsg,4,4,4,0,0,0,BrickColor.new("White"))
  2152. end
  2153. boomsound(1)
  2154. coroutine.resume(coroutine.create(function()
  2155. if workspace:findFirstChild("GridModel") ~= nil then
  2156. local c = game.Workspace.GridModel:GetChildren();
  2157. for i = 1, #c do
  2158. if c[i].className == "Part" then
  2159. local targ = c[i].Position - effectsg.Position;
  2160. local mag = targ.magnitude;
  2161. if mag <= 8 then
  2162. c[i].Parent = nil
  2163. end
  2164. end
  2165. end
  2166. end
  2167. local c = game.Workspace:GetChildren();
  2168. for i = 1, #c do
  2169. local hum = c[i]:findFirstChild("Humanoid")
  2170. if hum ~= nil and hum.Health ~= 0 then
  2171. local head = c[i]:findFirstChild("Head");
  2172. if head ~= nil then
  2173. local targ = head.Position - effectsg.Position;
  2174. local mag = targ.magnitude;
  2175. if mag <= 15 then
  2176. wait()
  2177. DBHit(head,effectsg,5)
  2178. end
  2179. end
  2180. end
  2181. --[[ local c = game.Workspace:GetChildren();
  2182. for i = 1, #c do
  2183. if c[i].className=="Part" then
  2184. local targ = c[i].Position - effectsg.Position;
  2185. local mag = targ.magnitude;
  2186. if mag <= 15 then
  2187. wait()
  2188. c[i]:BreakJoints()
  2189. end
  2190. end
  2191. if c[i]:findFirstChild("Part")~=nil then
  2192. local targ = c[i]:findFirstChild("Part").Position - effectsg.Position;
  2193. local mag = targ.magnitude;
  2194. if mag <= 15 then
  2195. wait()
  2196. c[i]:BreakJoints()
  2197. end
  2198. end
  2199. end ]]
  2200. end
  2201. end))
  2202. EVENMOARMAGIX(effectsg,10,8,10,0,0,0,0,0,0,BrickColor.new("White"))
  2203. for i = 0,5 do
  2204. wait()
  2205. MMMAGIC(effectsg,8,8,8,0,0,0,BrickColor.new("White"))
  2206. end
  2207. end),false)
  2208. end
  2209. end))
  2210. efwel.Parent = nil
  2211. effectsg.Anchored = true
  2212. local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  2213. --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75
  2214. --local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5)
  2215. local CJ = CFrame.new(HitPos)
  2216. local C0 = effectsg.CFrame:inverse() * CJ
  2217. local C1 = hit2.CFrame:inverse() * CJ
  2218. --efwel.C0 = C0
  2219. --efwel.C1 = C1
  2220. --efwel.Parent = effectsg
  2221. Damg = 10
  2222. coroutine.resume(coroutine.create(function()
  2223. wait(3)
  2224. effectsg.Parent = nil
  2225. end))
  2226. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  2227. hum = hit2.Parent.Humanoid
  2228. attackdebounce = false
  2229. Damagefunc1(hit2,Damg,5)
  2230. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  2231. hum = hit2.Parent.Parent.Humanoid
  2232. attackdebounce = false
  2233. Damagefunc1(hit2,Damg,5)
  2234. end
  2235. end
  2236. end
  2237.  
  2238.  
  2239. function faketors()
  2240. M.Parent = workspace
  2241. S.Parent = M
  2242. H.Parent = M
  2243. T.formFactor = 0
  2244. T.CanCollide = false
  2245. T.Name = "FTorso"
  2246. T.Locked = true
  2247. T.Parent = M
  2248. T.Transparency = 1
  2249. T.BrickColor = Torso.BrickColor
  2250. for i,z in pairs(Character:GetChildren()) do
  2251. if z.className == "CharacterMesh" then
  2252. if z.BodyPart == Enum.BodyPart.Torso then
  2253. local SM = Instance.new("SpecialMesh",T)
  2254. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  2255. if z.BaseTextureId ~= 0 then
  2256. SM.TextureId = z.BaseTextureId
  2257. elseif z.OverlayTextureId ~= 0 then
  2258. SM.TextureId = z.OverlayTextureId
  2259. else
  2260. SM.TextureId = ""
  2261. end
  2262. end
  2263. end
  2264. end
  2265. local wt = Instance.new("Weld")
  2266. wt.Parent = T
  2267. wt.Part0 = T
  2268. wt.Part1 = Torso
  2269. RW.Part0 = T
  2270. LW.Part0 = T
  2271. T.Transparency = 0
  2272. Torso.Transparency = 1
  2273. RHL.Part0 = T
  2274. LHL.Part0 = T
  2275. return wt,T
  2276. end
  2277.  
  2278. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  2279. local msh1 = Instance.new("BlockMesh")
  2280. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  2281. S=Instance.new("Part")
  2282. S.Name="Effect"
  2283. S.formFactor=0
  2284. S.Size=Vector3.new(x1,y1,z1)
  2285. S.BrickColor=color
  2286. S.Reflectance = 0
  2287. S.TopSurface=0
  2288. S.BottomSurface=0
  2289. S.Transparency=0
  2290. S.Anchored=true
  2291. S.CanCollide=false
  2292. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2293. S.Parent=workspace
  2294. msh1.Parent = S
  2295. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2296. end
  2297.  
  2298. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  2299. local msh1 = Instance.new("BlockMesh")
  2300. msh1.Scale = Vector3.new(x1,y1,z1)
  2301. S=Instance.new("Part")
  2302. S.Name="Effect"
  2303. S.formFactor=0
  2304. S.Size=Vector3.new(1,1,1)
  2305. S.BrickColor=color
  2306. S.Reflectance = 0
  2307. S.TopSurface=0
  2308. S.BottomSurface=0
  2309. S.Transparency=0
  2310. S.Anchored=true
  2311. S.CanCollide=false
  2312. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2313. S.Parent=workspace
  2314. msh1.Parent = S
  2315. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2316. end
  2317.  
  2318. function MOREMAGIX(part,cframe,x,y,z,color)
  2319. p2=Instance.new("Part")
  2320. p2.Name="Blast"
  2321. p2.TopSurface=0
  2322. p2.BottomSurface=0
  2323. p2.CanCollide=false
  2324. p2.Anchored=true
  2325. p2.BrickColor=color
  2326. p2.Size=Vector3.new(x,y,z)
  2327. p2.formFactor="Symmetric"
  2328. p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  2329. p2.Parent=workspace
  2330. m=Instance.new("BlockMesh")
  2331. m.Parent=p2
  2332. m.Name="BlastMesh"
  2333. coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10))
  2334. end
  2335.  
  2336. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2337. local msh1 = Instance.new("SpecialMesh")
  2338. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  2339. msh1.MeshType = "Sphere"
  2340. S=Instance.new("Part")
  2341. S.Name="Effect"
  2342. S.formFactor=0
  2343. S.Size=Vector3.new(x1,y1,z1)
  2344. S.BrickColor=color
  2345. S.Reflectance = 0
  2346. S.TopSurface=0
  2347. S.BottomSurface=0
  2348. S.Transparency=0
  2349. S.Anchored=true
  2350. S.CanCollide=false
  2351. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2352. S.Parent=workspace
  2353. msh1.Parent = S
  2354. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2355. end
  2356.  
  2357. print("Y U NU GIVE CREDIT.")
  2358.  
  2359. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2360. local msh1 = Instance.new("SpecialMesh")
  2361. msh1.Scale = Vector3.new(x1,y1,z1)
  2362. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2363. S=Instance.new("Part")
  2364. S.Name="Effect"
  2365. S.formFactor=0
  2366. S.Size=Vector3.new(1,1,1)
  2367. S.BrickColor=color
  2368. S.Reflectance = 0
  2369. S.TopSurface=0
  2370. S.BottomSurface=0
  2371. S.Transparency=0
  2372. S.Anchored=true
  2373. S.CanCollide=false
  2374. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2375. S.Parent=workspace
  2376. msh1.Parent = S
  2377. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2378. end
  2379.  
  2380. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2381. local msh1 = Instance.new("SpecialMesh")
  2382. msh1.Scale = Vector3.new(x1,y1,z1)
  2383. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  2384. S=Instance.new("Part")
  2385. S.Name="Effect"
  2386. S.formFactor=0
  2387. S.Size=Vector3.new(1,1,1)
  2388. S.BrickColor=color
  2389. S.Reflectance = 0
  2390. S.TopSurface=0
  2391. S.BottomSurface=0
  2392. S.Transparency=0
  2393. S.Anchored=true
  2394. S.CanCollide=false
  2395. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2396. S.Parent=workspace
  2397. msh1.Parent = S
  2398. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2399. end
  2400.  
  2401. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  2402. local msh1 = Instance.new("BlockMesh")
  2403. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  2404. S=Instance.new("Part")
  2405. S.Name="Effect"
  2406. S.formFactor=0
  2407. S.Size=Vector3.new(x1,y1,z1)
  2408. S.BrickColor=color
  2409. S.Reflectance = 0
  2410. S.TopSurface=0
  2411. S.BottomSurface=0
  2412. S.Transparency=0
  2413. S.Anchored=false
  2414. S.CanCollide=false
  2415. S.CFrame=part.CFrame
  2416. S.Parent=workspace
  2417. msh1.Parent = S
  2418. W=Instance.new("Weld")
  2419. W.Parent=S
  2420. W.Part0=S
  2421. W.Part1=part
  2422. W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2423. W.Parent=nil
  2424. S.Anchored=true
  2425. coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
  2426. end
  2427.  
  2428. DarkRiftF=function(par) --Thank you turdulator for this :D
  2429. while lol == true do
  2430. wait()
  2431. PWN={}
  2432. for _,v in pairs(workspace:children()) do
  2433. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  2434. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  2435. if v~=Character and (v.Torso.Position-par.Position).magnitude<=DemMags then
  2436. table.insert(PWN,v.Torso)
  2437. end
  2438. end
  2439. end
  2440. end
  2441. for _,t in pairs(PWN) do
  2442. Mag=(par.Position-t.Position).magnitude/2
  2443. t.Parent.Humanoid:TakeDamage(1)
  2444. rl=Instance.new("BodyAngularVelocity")
  2445. rl.P=3000
  2446. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  2447. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  2448. rl.Parent=t
  2449. game:GetService("Debris"):AddItem(rl,.1)
  2450. if Mag<=2 then
  2451. t.Parent.Humanoid:TakeDamage(.5)
  2452. else
  2453. vl=Instance.new("BodyVelocity")
  2454. vl.P=3000
  2455. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  2456. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  2457. vl.Parent=t
  2458. game:GetService("Debris"):AddItem(vl,.1)
  2459. end
  2460. end
  2461. wait(.08)
  2462. end
  2463. end
  2464.  
  2465. function ss(pitch)
  2466.  
  2467. local SlashSound = Instance.new("Sound")
  2468. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  2469. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  2470. SlashSound.Parent = workspace
  2471. SlashSound.Volume = .7
  2472. SlashSound.Pitch = pitch
  2473. SlashSound.PlayOnRemove = true
  2474. coroutine.resume(coroutine.create(function()
  2475. wait(0)
  2476. SlashSound.Parent = nil
  2477. end))
  2478. end
  2479. function equipsound(pitch)
  2480.  
  2481. local SlashSound = Instance.new("Sound")
  2482. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  2483. SlashSound.Parent = workspace
  2484. SlashSound.Volume = .5
  2485. SlashSound.Pitch = pitch
  2486. SlashSound.PlayOnRemove = true
  2487. coroutine.resume(coroutine.create(function()
  2488. wait(0)
  2489. SlashSound.Parent = nil
  2490. end))
  2491. end
  2492. function magicsound(pitch)
  2493.  
  2494. local SlashSound = Instance.new("Sound")
  2495. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  2496. SlashSound.Parent = workspace
  2497. SlashSound.Volume = .5
  2498. SlashSound.Pitch = pitch
  2499. SlashSound.PlayOnRemove = true
  2500. coroutine.resume(coroutine.create(function()
  2501. wait(0)
  2502. SlashSound.Parent = nil
  2503. end))
  2504. end
  2505. function critsound(pitch)
  2506.  
  2507. local SlashSound = Instance.new("Sound")
  2508. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  2509. SlashSound.Parent = workspace
  2510. SlashSound.Volume = .7
  2511. SlashSound.Pitch = pitch
  2512. SlashSound.PlayOnRemove = true
  2513. coroutine.resume(coroutine.create(function()
  2514. wait(0)
  2515. SlashSound.Parent = nil
  2516. end))
  2517. end
  2518. function spikesound(pitch)
  2519.  
  2520. local SlashSound = Instance.new("Sound")
  2521. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  2522. SlashSound.Parent = workspace
  2523. SlashSound.Volume = .7
  2524. SlashSound.Pitch = pitch
  2525. SlashSound.PlayOnRemove = true
  2526. coroutine.resume(coroutine.create(function()
  2527. wait(0)
  2528. SlashSound.Parent = nil
  2529. end))
  2530. end
  2531. function boomsound(pitch)
  2532.  
  2533. local SlashSound = Instance.new("Sound")
  2534. SlashSound.SoundId = "http://www.roblox.com/asset?id=2101148"
  2535. SlashSound.Parent = workspace
  2536. SlashSound.Volume = .7
  2537. SlashSound.Pitch = pitch
  2538. SlashSound.PlayOnRemove = true
  2539. coroutine.resume(coroutine.create(function()
  2540. wait(0)
  2541. SlashSound.Parent = nil
  2542. end))
  2543. end
  2544. function lasersound(pitch)
  2545.  
  2546. local SlashSound = Instance.new("Sound")
  2547. SlashSound.SoundId = "rbxasset://sounds/Launching rocket.wav"
  2548. SlashSound.Parent = workspace
  2549. SlashSound.Volume = .5
  2550. SlashSound.Pitch = pitch
  2551. SlashSound.PlayOnRemove = true
  2552. coroutine.resume(coroutine.create(function()
  2553. wait(0)
  2554. SlashSound.Parent = nil
  2555. end))
  2556. end
  2557. function omnomnom(pitch)
  2558.  
  2559. local SlashSound = Instance.new("Sound")
  2560. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12544690"
  2561. SlashSound.Parent = workspace
  2562. SlashSound.Volume = .5
  2563. SlashSound.Pitch = pitch
  2564. SlashSound.PlayOnRemove = true
  2565. coroutine.resume(coroutine.create(function()
  2566. wait(0)
  2567. SlashSound.Parent = nil
  2568. end))
  2569. end
  2570.  
  2571. Damagefunc1=function(hit,Damage,Knockback)
  2572. if hit.Parent==nil then
  2573. return
  2574. end
  2575. CPlayer=Bin
  2576. h=hit.Parent:FindFirstChild("Humanoid")
  2577. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2578. if attackdebounce == false then
  2579. attackdebounce = true
  2580. coroutine.resume(coroutine.create(function()
  2581. wait(0.1)
  2582. attackdebounce = false
  2583. end))
  2584. if mana < 400 and mode == "Sword" then
  2585. mana = mana + math.random(30,50)
  2586. end
  2587. if mana > 400 then
  2588. mana = 400
  2589. end
  2590. Damage=Damage
  2591. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2592. return
  2593. end]]
  2594. c=Instance.new("ObjectValue")
  2595. c.Name="creator"
  2596. c.Value=owner
  2597. c.Parent=h
  2598. game:GetService("Debris"):AddItem(c,.5)
  2599. -- print(c.Value)
  2600. if math.random(0,99)+math.random()<=5 then
  2601. CRIT=true
  2602. Damage=Damage*1.5
  2603. --[[ Knockback=Knockback*2
  2604. r=Instance.new("BodyAngularVelocity")
  2605. r.P=3000
  2606. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2607. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2608. r.Parent=hit.Parent.Torso]]
  2609. critsound(2)
  2610.  
  2611. end
  2612. Damage=Damage+math.random(0,10)
  2613. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  2614. h:TakeDamage(Damage)
  2615. showDamage(hit.Parent,Damage,.5)
  2616. vp=Instance.new("BodyVelocity")
  2617. vp.P=500
  2618. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2619. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2620. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2621. if Knockback>0 then
  2622. vp.Parent=hit.Parent.Torso
  2623. end
  2624. game:GetService("Debris"):AddItem(vp,.25)
  2625. --[[ r=Instance.new("BodyAngularVelocity")
  2626. r.P=3000
  2627. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2628. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2629. r.Parent=hit.Parent.Torso]]
  2630. game:GetService("Debris"):AddItem(r,.5)
  2631. c=Instance.new("ObjectValue")
  2632. c.Name="creator"
  2633. c.Value=Player
  2634. c.Parent=h
  2635. game:GetService("Debris"):AddItem(c,.5)
  2636. CRIT=false
  2637. hitDeb=true
  2638. AttackPos=6
  2639. end
  2640. end
  2641. end
  2642.  
  2643. Damagefunc2=function(hit,Damage,Knockback)
  2644. if hit.Parent==nil then
  2645. return
  2646. end
  2647. CPlayer=Bin
  2648. h=hit.Parent:FindFirstChild("Humanoid")
  2649. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2650. if attackdebounce == false then
  2651. attackdebounce = true
  2652. coroutine.resume(coroutine.create(function()
  2653. wait(0.1)
  2654. attackdebounce = false
  2655. end))
  2656. if mana < 400 and mode == "Sword" then
  2657. mana = mana + math.random(30,50)
  2658. end
  2659. if mana > 400 then
  2660. mana = 400
  2661. end
  2662. Damage=Damage
  2663. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2664. return
  2665. end]]
  2666. c=Instance.new("ObjectValue")
  2667. c.Name="creator"
  2668. c.Value=owner
  2669. c.Parent=h
  2670. game:GetService("Debris"):AddItem(c,.5)
  2671. -- print(c.Value)
  2672. CRIT=true
  2673. if CRIT==true then
  2674. CRIT=true
  2675. Damage=Damage*1.5
  2676. Knockback=Knockback*2
  2677. for i=1,3 do
  2678. EVENMOARMAGIX(hit.Parent.Torso,5,5,5,0,0,0,0,0,0,BrickColor.new("White"))
  2679. end
  2680. r=Instance.new("BodyAngularVelocity")
  2681. r.P=3000
  2682. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2683. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2684. r.Parent=hit.Parent.Torso
  2685. critsound(2)
  2686.  
  2687. end
  2688. Damage=Damage+math.random(0,10)
  2689. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  2690. h:TakeDamage(Damage)
  2691. showDamage(hit.Parent,Damage,.5)
  2692. vp=Instance.new("BodyVelocity")
  2693. vp.P=500
  2694. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2695. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2696. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2697. if Knockback>0 then
  2698. vp.Parent=hit.Parent.Torso
  2699. end
  2700. game:GetService("Debris"):AddItem(vp,.25)
  2701. --[[ r=Instance.new("BodyAngularVelocity")
  2702. r.P=3000
  2703. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2704. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2705. r.Parent=hit.Parent.Torso]]
  2706. game:GetService("Debris"):AddItem(r,.5)
  2707. c=Instance.new("ObjectValue")
  2708. c.Name="creator"
  2709. c.Value=Player
  2710. c.Parent=h
  2711. game:GetService("Debris"):AddItem(c,.5)
  2712. CRIT=false
  2713. hitDeb=true
  2714. AttackPos=6
  2715. end
  2716. end
  2717. end
  2718.  
  2719. DBHit=function(hit,DB,Dmg) --credits to turdulator for making this function :D
  2720. if hit.Parent==nil then
  2721. return
  2722. end
  2723. h=hit.Parent:FindFirstChild("Humanoid")
  2724. if h==nil then
  2725. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2726. end
  2727. t=hit.Parent:FindFirstChild("Torso")
  2728. if h~=nil and t~=nil then
  2729. --[[ if h.Parent==Character then
  2730. return
  2731. end]]
  2732. coroutine.resume(coroutine.create(function()
  2733. if h.Parent==Character then
  2734. local vel = Instance.new("BodyVelocity")
  2735. vel.maxForce = Vector3.new(0,math.huge,0)
  2736. vel.P = vel.P * 2
  2737. vel.velocity = Vector3.new(0,100,0)
  2738. vel.Parent = Torso
  2739. wait(0.2)
  2740. vel.Parent = nil
  2741. end
  2742. end))
  2743. Damage=Dmg+math.random(2,10)
  2744. h:TakeDamage(Damage)
  2745. c=Instance.new("ObjectValue")
  2746. c.Name="creator"
  2747. c.Value=owner
  2748. c.Parent=h
  2749. game:GetService("Debris"):AddItem(c,.5)
  2750. showDamage(hit.Parent,Damage,.5)
  2751. vl=Instance.new("BodyVelocity")
  2752. vl.P=4500
  2753. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2754. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0)
  2755. vl.Parent=t
  2756. game:GetService("Debris"):AddItem(vl,.2)
  2757. rl=Instance.new("BodyAngularVelocity")
  2758. rl.P=3000
  2759. rl.maxTorque=Vector3.new(5000,5000,5000)*500000000
  2760. rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2761. rl.Parent=t
  2762. game:GetService("Debris"):AddItem(rl,.2)
  2763. else
  2764. if hit.CanCollide==false then
  2765. return
  2766. end
  2767. MagicCom:disconnect()
  2768. -- DBExplode(DB)
  2769. end
  2770. end
  2771.  
  2772. showDamage=function(Char,Dealt,du)
  2773. m=Instance.new("Model")
  2774. m.Name=tostring(Dealt)
  2775. h=Instance.new("Humanoid")
  2776. h.Health=0
  2777. h.MaxHealth=0
  2778. h.Parent=m
  2779. c=Instance.new("Part")
  2780. c.Transparency=0
  2781. c.BrickColor=BrickColor:Red()
  2782. if CRIT==true then
  2783. c.BrickColor=BrickColor.new("Really red")
  2784. end
  2785. c.Name="Head"
  2786. c.TopSurface=0
  2787. c.BottomSurface=0
  2788. c.formFactor="Plate"
  2789. c.Size=Vector3.new(1,.4,1)
  2790. ms=Instance.new("CylinderMesh")
  2791. ms.Bevel=.1
  2792. ms.Scale=Vector3.new(.8,.8,.8)
  2793. if CRIT==true then
  2794. ms.Scale=Vector3.new(1.25,1.5,1.25)
  2795. ms.Bevel=.2
  2796. end
  2797. ms.Parent=c
  2798. c.Reflectance=0
  2799. Instance.new("BodyGyro").Parent=c
  2800. c.Parent=m
  2801. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2802. f=Instance.new("BodyPosition")
  2803. f.P=2000
  2804. f.D=100
  2805. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2806. f.position=c.Position+Vector3.new(0,3,0)
  2807. f.Parent=c
  2808. game:GetService("Debris"):AddItem(m,.5+du)
  2809. c.CanCollide=false
  2810. m.Parent=workspace
  2811. c.CanCollide=false
  2812. end
  2813.  
  2814. hold = false
  2815.  
  2816.  
  2817. function ob1d(mouse)
  2818. if attack == true then return end
  2819. if stancing == true then return end
  2820. hold = true
  2821. if Stance=="Normal" then
  2822. if mode == "Sword" then
  2823. if combo == 0 then
  2824. combo = 1
  2825. onehit()
  2826. coroutine.resume(coroutine.create(function()
  2827. wait(0.5)
  2828. if attack == false then
  2829. combo = 0
  2830. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  2831. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2832. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2833. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2834. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2835. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2836. end
  2837. end))
  2838. elseif combo == 1 then
  2839. combo = 2
  2840. twohit()
  2841. coroutine.resume(coroutine.create(function()
  2842. wait(0.5)
  2843. if attack == false then
  2844. combo = 0
  2845. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  2846. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2847. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2848. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2849. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2850. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2851. end
  2852. end))
  2853. elseif combo == 2 then
  2854. combo = 3
  2855. threehit()
  2856. coroutine.resume(coroutine.create(function()
  2857. wait(0.5)
  2858. if attack == false then
  2859. combo = 0
  2860. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  2861. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2862. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2863. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2864. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2865. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2866. end
  2867. end))
  2868. elseif combo == 3 then
  2869. combo = 4
  2870. fourhit()
  2871. wait(0.5)
  2872. combo = 0
  2873. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,-1,1.57) * CFrame.new(0,1,0)
  2874. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2875. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  2876. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2877. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2878. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2879. end
  2880. elseif mode == "Gun" then
  2881. Shoot(mouse)
  2882. end
  2883. end
  2884. end
  2885.  
  2886. function ob1u(mouse)
  2887. hold = false
  2888. end
  2889.  
  2890. buttonhold = false
  2891.  
  2892. function Key(key,mouse)
  2893. if key == "g" then
  2894. EatMuffin()
  2895. end
  2896. if attack == true then return end
  2897. if key == "z" and Stance=="NotFighting" then
  2898. keyZ=true
  2899. SpinAround()
  2900. end
  2901. if key == "x" and Stance=="NotFighting" then
  2902. JumpStab()
  2903. end
  2904. if key == "c" and Stance=="NotFighting" then
  2905. EndStance()
  2906. Stance="Normal"
  2907. attack=false
  2908. return
  2909. end
  2910. if Stance=="Normal" then
  2911. if key == "c" then
  2912. StanceMode()
  2913. end
  2914. if key == "h" then
  2915. if mana2=="Normal" then
  2916. mana2="Max"
  2917. elseif mana2=="Max" then
  2918. mana2="Normal"
  2919. end
  2920. end
  2921. if key == "q" then
  2922. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2923. Switch()
  2924. end
  2925. if mode == "Gun" then
  2926. if key == "e" then
  2927. Aim(mouse)
  2928. end
  2929. if key == "r" then
  2930. changeitemleft()
  2931. end
  2932. if key == "t" then
  2933. changeitemright()
  2934. end
  2935. if key == "z" then
  2936. if alt==0 then
  2937. elseif alt==1 then
  2938. alt=0
  2939. elseif alt==2 then
  2940. alt=1
  2941. end
  2942. end
  2943. if key == "x" then
  2944. if alt==0 then
  2945. alt=1
  2946. elseif alt==1 then
  2947. alt=2
  2948. elseif alt==2 then
  2949. end
  2950. end
  2951. elseif mode == "Sword" then
  2952. if key == "e" then
  2953. SpinSlash()
  2954. end
  2955. if key == "r" then
  2956. WaveStab()
  2957. end
  2958. if key == "t" then
  2959. if skillcombo == 0 then
  2960. DarkSlash()
  2961. elseif skillcombo == 1 then
  2962. LightSlash()
  2963. end
  2964. end
  2965. end
  2966. end
  2967. end
  2968.  
  2969. function Key2(key,mouse)
  2970. if key == "z" then
  2971. keyZ=false
  2972. end
  2973. end
  2974.  
  2975. function s(mouse)
  2976. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2977. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2978. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  2979. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  2980. --mouse.KeyDown:connect(key,mouse)
  2981. --mouse.KeyUp:connect(key2,mouse)
  2982. MMouse = mouse
  2983. player = Player
  2984. ch = Character
  2985. RSH = ch.Torso["Right Shoulder"]
  2986. LSH = ch.Torso["Left Shoulder"]
  2987. --
  2988. RW.Part0 = ch.Torso
  2989. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2990. RW.C1 = CFrame.new(0, 0.5, 0)
  2991. RW.Part1 = ch["Right Arm"]
  2992. RW.Parent = ch.Torso
  2993. --_G.R = RW
  2994. --
  2995. LW.Part0 = ch.Torso
  2996. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2997. LW.C1 = CFrame.new(0, 0.5, 0)
  2998. LW.Part1 = ch["Left Arm"]
  2999. LW.Parent = ch.Torso
  3000. --_G.L = LW
  3001. --
  3002. equipanim()
  3003. end
  3004.  
  3005. function ds(mouse)
  3006. hideanim()
  3007. RW.Parent = nil
  3008. LW.Parent = nil
  3009. RSH.Parent = player.Character.Torso
  3010. LSH.Parent = player.Character.Torso
  3011. end
  3012.  
  3013. Bin.Selected:connect(s)
  3014. Bin.Deselected:connect(ds)
  3015.  
  3016. function onRunning(speed)
  3017. --[[ if speed>0 then
  3018. if Stance=="NotFighting" then
  3019. for i=0,1,0.1 do
  3020. wait()
  3021. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.7*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5)
  3022. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-2*i,0,-1+1*i)
  3023. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3024. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  3025. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3026. end
  3027. end
  3028. else
  3029. if Stance=="NotFighting" then
  3030. for i=0,1,0.1 do
  3031. wait()
  3032. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.7+0.7*i,1.57) * CFrame.new(0,1+0.3-0.3+0.3*i,0.5)
  3033. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-2+2*i,0,-1+1-1*i)
  3034. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3035. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  3036. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3037. end
  3038. end
  3039. end]]
  3040. if attack == true then return end
  3041. if speed>0 then
  3042. walking = true
  3043. if mode == "Sword" and Stance=="Normal" then
  3044. for i = 0,1,0.1 do
  3045. wait()
  3046. if attack == false then
  3047. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  3048. --Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  3049. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  3050. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3051. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  3052. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3053. end
  3054. end
  3055. end
  3056. if Stance=="NotFighting" then
  3057. for i=0,1,0.1 do
  3058. wait()
  3059. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.7*i,1.57) * CFrame.new(0,1+0.3-0.3*i,0.5)
  3060. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-2*i,0,-1+1*i)
  3061. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3062. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5)
  3063. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3064. end
  3065. end
  3066. else
  3067. walking = false
  3068. if mode == "Sword" and Stance=="Normal" then
  3069. for i = 0,1,0.1 do
  3070. wait()
  3071. if attack == false then
  3072. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  3073. --Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(0,0,0)
  3074. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  3075. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3076. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  3077. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3078. end
  3079. end
  3080. end
  3081. if Stance=="NotFighting" then
  3082. for i=0,1,0.1 do
  3083. wait()
  3084. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5-0.7+0.7*i,1.57) * CFrame.new(0,1+0.3-0.3+0.3*i,0.5)
  3085. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+1-0.5-2+2*i,0,-1+1-1*i)
  3086. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3087. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5)
  3088. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3089. end
  3090. end
  3091. end
  3092. end
  3093. Character.Humanoid.Running:connect(onRunning)
  3094.  
  3095. increase = 0
  3096. while true do
  3097. wait(0)
  3098. --[[coroutine.resume(coroutine.create(function()
  3099. if attack==true and Stance~="NotFighting" then
  3100. if EtheralMode==false then
  3101. EtheralMode=true
  3102. prt13.Transparency=0.9
  3103. local maxNumClones = 10
  3104. local numClones = maxNumClones
  3105. local mySwords = {}
  3106. local swordConnections = {}
  3107. local waitTime = 0.000000000001
  3108.  
  3109. for i = 1, numClones do
  3110. local newSword = prt13:Clone()
  3111. newSword.Transparency = (numClones-i+1)/(numClones+1)
  3112. -- newSword.Mesh.VertexColor = Vector3.new((i+numClones)/(2*numClones+1), (i+numClones)/(2*numClones+1), 1)
  3113. -- newSword.Mesh.VertexColor = Vector3.new((i+numClones)/(2*numClones+1), (i+2*numClones)/(3*numClones+1), 1)
  3114. newSword.Anchored = false
  3115. newSword.CanCollide = false
  3116.  
  3117. local newBodyPos = Instance.new("BodyPosition")
  3118. newBodyPos.Name = "SwordPos"
  3119. newBodyPos.P = 10000
  3120. newBodyPos.maxForce = Vector3.new(newBodyPos.P, newBodyPos.P, newBodyPos.P)
  3121. newBodyPos.Parent = newSword
  3122.  
  3123. local newBodyGyro = Instance.new("BodyGyro")
  3124. newBodyGyro.Name = "SwordGyro"
  3125. newBodyGyro.P = 10000
  3126. newBodyGyro.maxTorque = Vector3.new(newBodyGyro.P, newBodyGyro.P, newBodyGyro.P)
  3127. newBodyGyro.Parent = newSword
  3128.  
  3129. table.insert(mySwords, newSword)
  3130. end
  3131.  
  3132. local index = 1
  3133.  
  3134. -- start out at current sword's CFrame
  3135. local swordFrames = {}
  3136. for i = 1, numClones do
  3137. table.insert(swordFrames, prt13.CFrame)
  3138. mySwords[i].CFrame = prt13.CFrame
  3139. --mySwords[i].Parent = game.Workspace
  3140. mySwords[i].Parent = workspace
  3141. end
  3142.  
  3143. local numSteps = 5 / waitTime
  3144. for i = 1, 100 do -- 5 seconds of sword ghosting/strobing
  3145. for j = 1, numClones do
  3146. --mySwords[j].CFrame = swordFrames[index]
  3147. if swordFrames[index] ~= nil then
  3148. mySwords[j].SwordGyro.cframe = swordFrames[index]
  3149. mySwords[j].SwordPos.position = swordFrames[index].p
  3150. end
  3151. index = index + 1
  3152. if index > numClones then index = 1 end
  3153. end
  3154. swordFrames[index] = prt13.CFrame
  3155. index = index + 1
  3156. if index > numClones then index = 1 end
  3157. wait(waitTime)
  3158.  
  3159. end
  3160.  
  3161. for i = 1, numClones do
  3162. mySwords[i].Parent = nil
  3163. end
  3164.  
  3165. if numClones > 0 then numClones = numClones - 1 end
  3166. prt13.Transparency=0
  3167. EtheralMode=false
  3168. end
  3169. end
  3170. end))]]
  3171. --print(blackhole)
  3172. if mana2=="Max" then
  3173. mana = 400
  3174. end
  3175. if mana < 0 then
  3176. mana = 0
  3177. end
  3178. increase = increase + 1
  3179. if increase == 5 then
  3180. if mana < 400 then
  3181. mana = mana + 1
  3182. end
  3183. increase = 0
  3184. end
  3185. fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0)
  3186. fentext.Text = "Energy("..mana..")"
  3187. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  3188. fentext4.Text = "Shot Equipped: "..shot..""
  3189. fentext5.Text = "Alternate Shot: "..alt..""
  3190. end
  3191. ---mediafire
Advertisement
Add Comment
Please, Sign In to add comment