Advertisement
doryna2281337

Untitled

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