Advertisement
ghostteen14

Untitled

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