Advertisement
lafur

a

Nov 8th, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.39 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end Player = game:GetService("Players").LocalPlayer
  6. Character = Player.Character
  7. PlayerGui = Player.PlayerGui
  8. Backpack = Player.Backpack
  9. Torso = Character.Torso
  10. Head = Character.Head
  11. LeftArm = Character["Left Arm"]
  12. LeftLeg = Character["Left Leg"]
  13. RightArm = Character["Right Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LS = Torso["Left Shoulder"]
  16. LH = Torso["Left Hip"]
  17. RS = Torso["Right Shoulder"]
  18. RH = Torso["Right Hip"]
  19. attack = false
  20. attackdebounce = false
  21. combo = 0
  22. mana = 400
  23. mouse = nil
  24. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. lightning = false
  26. restoring = false
  27. Style = "Normal"
  28. idleanimdelay = false
  29. fly = false
  30. seeing = true
  31. --player
  32. player = nil
  33. --save shoulders
  34. RSH, LSH = nil, nil
  35. --welds
  36. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  37. --what anim
  38. anim = "none"
  39.  
  40. if Character:findFirstChild("Present Tosser",true) ~= nil then
  41. Character:findFirstChild("Present Tosser",true).Parent = nil
  42. end
  43. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  44. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  45. end
  46.  
  47.  
  48. local modelzorz = Instance.new("Model")
  49. modelzorz.Name = "Present Tosser"
  50. modelzorz.Parent = Character
  51.  
  52. local prt1 = Instance.new("Part")
  53. prt1.formFactor = 3
  54. prt1.Parent = modelzorz
  55. prt1.CanCollide = false
  56. prt1.BrickColor = BrickColor.new("Really Navy blue")
  57. prt1.Name = "Blade1"
  58. prt1.Transparency = 0
  59. prt1.Reflectance = 0.1
  60. prt1.Size = Vector3.new(1,1,1)
  61. prt1.CFrame = Torso.CFrame
  62.  
  63. local tprt1 = Instance.new("Part")
  64. tprt1.formFactor = 3
  65. tprt1.Parent = modelzorz
  66. tprt1.CanCollide = false
  67. tprt1.BrickColor = BrickColor.new("Navy blue")
  68. tprt1.Name = "Blade1"
  69. tprt1.Transparency = 0
  70. tprt1.Reflectance = 0.1
  71. tprt1.Size = Vector3.new(2,2,1)
  72. tprt1.CFrame = Torso.CFrame
  73.  
  74. local prt25 = Instance.new("Part")
  75. prt25.formFactor = 3
  76. prt25.Parent = modelzorz
  77. prt25.CanCollide = false
  78. prt25.BrickColor = BrickColor.new("Navy blue")
  79. prt25.Name = "Blade1"
  80. prt25.Transparency = 0
  81. prt25.Reflectance = 0.1
  82. prt25.Size = Vector3.new(1,1,1)
  83. prt25.CFrame = Torso.CFrame
  84.  
  85. local fprt1 = Instance.new("Part")
  86. fprt1.formFactor = 3
  87. fprt1.Parent = modelzorz
  88. fprt1.CanCollide = false
  89. fprt1.BrickColor = BrickColor.new("Brick yellow")
  90. fprt1.Name = "Blade1"
  91. fprt1.Transparency = 0
  92. fprt1.Reflectance = 0.1
  93. fprt1.Size = Vector3.new(1,1,1)
  94. fprt1.CFrame = Torso.CFrame
  95.  
  96. local fprt25 = Instance.new("Part")
  97. fprt25.formFactor = 3
  98. fprt25.Parent = modelzorz
  99. fprt25.CanCollide = false
  100. fprt25.BrickColor = BrickColor.new("Really Navy blue")
  101. fprt25.Name = "Blade1"
  102. fprt25.Transparency = 0
  103. fprt25.Reflectance = 0.1
  104. fprt25.Size = Vector3.new(1,1,1)
  105. fprt25.CFrame = Torso.CFrame
  106.  
  107. local rprt1 = Instance.new("Part")
  108. rprt1.formFactor = 3
  109. rprt1.Parent = modelzorz
  110. rprt1.CanCollide = false
  111. rprt1.BrickColor = BrickColor.new("Brick yellow")
  112. rprt1.Name = "Blade1"
  113. rprt1.Transparency = 0
  114. rprt1.Reflectance = 0.1
  115. rprt1.Size = Vector3.new(1,1,1)
  116. rprt1.CFrame = Torso.CFrame
  117.  
  118. local rprt25 = Instance.new("Part")
  119. rprt25.formFactor = 3
  120. rprt25.Parent = modelzorz
  121. rprt25.CanCollide = false
  122. rprt25.BrickColor = BrickColor.new("Navy blue")
  123. rprt25.Name = "Blade1"
  124. rprt25.Transparency = 0
  125. rprt25.Reflectance = 0.1
  126. rprt25.Size = Vector3.new(1,1,1)
  127. rprt25.CFrame = Torso.CFrame
  128.  
  129. local frprt1 = Instance.new("Part")
  130. frprt1.formFactor = 3
  131. frprt1.Parent = modelzorz
  132. frprt1.CanCollide = false
  133. frprt1.BrickColor = BrickColor.new("Brick yellow")
  134. frprt1.Name = "Blade1"
  135. frprt1.Transparency = 0
  136. frprt1.Reflectance = 0.1
  137. frprt1.Size = Vector3.new(1,1,1)
  138. frprt1.CFrame = Torso.CFrame
  139.  
  140. local frprt25 = Instance.new("Part")
  141. frprt25.formFactor = 3
  142. frprt25.Parent = modelzorz
  143. frprt25.CanCollide = false
  144. frprt25.BrickColor = BrickColor.new("Really Navy blue")
  145. frprt25.Name = "Blade1"
  146. frprt25.Transparency = 0
  147. frprt25.Reflectance = 0.1
  148. frprt25.Size = Vector3.new(1,1,1)
  149. frprt25.CFrame = Torso.CFrame
  150. modelzorz:BreakJoints()
  151.  
  152. local msh25 = Instance.new("BlockMesh")
  153. msh25.Parent = prt1
  154. msh25.Scale = Vector3.new(1,1,1)
  155.  
  156. local tmsh25 = Instance.new("BlockMesh")
  157. tmsh25.Parent = tprt1
  158. tmsh25.Scale = Vector3.new(1,1,1)
  159.  
  160. local msh1 = Instance.new("BlockMesh")
  161. msh1.Parent = prt25
  162. msh1.Scale = Vector3.new(1,1,1)
  163.  
  164. local fmsh25 = Instance.new("BlockMesh")
  165. fmsh25.Parent = fprt1
  166. fmsh25.Scale = Vector3.new(1,1,1)
  167.  
  168. local fmsh1 = Instance.new("BlockMesh")
  169. fmsh1.Parent = fprt25
  170. fmsh1.Scale = Vector3.new(1,1,1)
  171.  
  172. local rmsh25 = Instance.new("BlockMesh")
  173. rmsh25.Parent = rprt1
  174. rmsh25.Scale = Vector3.new(1,1,1)
  175.  
  176. local rmsh1 = Instance.new("BlockMesh")
  177. rmsh1.Parent = rprt25
  178. rmsh1.Scale = Vector3.new(1,1,1)
  179.  
  180. local frmsh25 = Instance.new("BlockMesh")
  181. frmsh25.Parent = frprt1
  182. frmsh25.Scale = Vector3.new(1,1,1)
  183.  
  184. local frmsh1 = Instance.new("BlockMesh")
  185. frmsh1.Parent = frprt25
  186. frmsh1.Scale = Vector3.new(1,1,1)
  187.  
  188. local wld1 = Instance.new("Weld")
  189. wld1.Parent = prt1
  190. wld1.Part0 = prt1
  191. wld1.Part1 = LeftArm
  192. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,.5,0)
  193. wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  194. local wld25 = Instance.new("Weld")
  195. wld25.Parent = prt25
  196. wld25.Part0 = prt25
  197. wld25.Part1 = LeftArm
  198. wld25.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-.5,0)
  199. wld25.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  200.  
  201. local twld1 = Instance.new("Weld")
  202. twld1.Parent = tprt1
  203. twld1.Part0 = tprt1
  204. twld1.Part1 = Torso
  205. twld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  206. twld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  207.  
  208. local fwld1 = Instance.new("Weld")
  209. fwld1.Parent = fprt1
  210. fwld1.Part0 = fprt1
  211. fwld1.Part1 = LeftLeg
  212. fwld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,.5,0)
  213. fwld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  214. local fwld25 = Instance.new("Weld")
  215. fwld25.Parent = fprt25
  216. fwld25.Part0 = fprt25
  217. fwld25.Part1 = LeftLeg
  218. fwld25.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-.5,0)
  219. fwld25.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  220.  
  221. local rwld1 = Instance.new("Weld")
  222. rwld1.Parent = rprt1
  223. rwld1.Part0 = rprt1
  224. rwld1.Part1 = RightArm
  225. rwld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,.5,0)
  226. rwld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  227. local rwld25 = Instance.new("Weld")
  228. rwld25.Parent = rprt25
  229. rwld25.Part0 = rprt25
  230. rwld25.Part1 = RightArm
  231. rwld25.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-.5,0)
  232. rwld25.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  233.  
  234. local frwld1 = Instance.new("Weld")
  235. frwld1.Parent = frprt1
  236. frwld1.Part0 = frprt1
  237. frwld1.Part1 = RightLeg
  238. frwld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,.5,0)
  239. frwld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  240. local frwld25 = Instance.new("Weld")
  241. frwld25.Parent = frprt25
  242. frwld25.Part0 = frprt25
  243. frwld25.Part1 = RightLeg
  244. frwld25.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-.5,0)
  245. frwld25.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  246. local gairo = Instance.new("BodyGyro")
  247. gairo.Parent = nil
  248. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  249. gairo.P = 20e+003
  250.  
  251. if (script.Parent.className ~= "HopperBin") then
  252. Tool = Instance.new("HopperBin")
  253. Tool.Parent = Backpack
  254. Tool.Name = "Present Tosser"
  255. script.Parent = Tool
  256. end
  257. Bin = script.Parent
  258.  
  259. function ThrowSpam2(mouse)
  260. for i = 0,1,0.1 do
  261. wait()
  262. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0)
  263. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  264. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0)
  265. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  266. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  267. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  268. end
  269. wait(0.1)
  270. ss(1)
  271. coroutine.resume(coroutine.create(function()
  272. for i = 1,30 do
  273. wait(0.1)
  274. coroutine.resume(coroutine.create(function()
  275. shoottrail(mouse)
  276. end))
  277. end
  278. coroutine.resume(coroutine.create(function()
  279. for i = 0,1,0.2 do
  280. wait()
  281. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  282. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0)
  283. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  284. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4)
  285. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  286. end
  287. end))
  288. prt1.CanCollide = true
  289. shoottrail(mouse)
  290. --ShootArrow(mouse.hit.p, 200, mouse.Target)
  291. wait(1)
  292. prt1.Anchored = false
  293. wld1.Parent = prt1
  294. wld1.Part0 = prt1
  295. wld1.Part1 = LeftArm
  296. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0)
  297. wld1.C1 = CFrame.new(0,0,0)
  298. if heromode == false then
  299. else
  300. wait(4)
  301. end
  302. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0)
  303. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  304. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  305. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  306. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  307. attack = false
  308. rangepower = 10
  309. end))
  310. end
  311.  
  312. spread2 = 500
  313. range2 = 1000
  314. rangepower = 10
  315. function shoottrail2(mouse)
  316. local spreadvector = (Vector3.new(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (prt1.Position-mouse.Hit.p).magnitude/100
  317. local dir = CFrame.new((prt1.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  318. local hit2,pos = rayCast(prt1.Position,dir.lookVector,10,Character)
  319. local rangepos = range2
  320. local function drawtrail(From,To)
  321. local effectsmsh = Instance.new("CylinderMesh")
  322. effectsmsh.Scale = Vector3.new(1,1,1)
  323. effectsmsh.Name = "Mesh"
  324. local effectsg = Instance.new("Part")
  325. effectsg.formFactor = 3
  326. effectsg.CanCollide = false
  327. effectsg.Name = "Eff"
  328. effectsg.Locked = true
  329. effectsg.Anchored = true
  330. effectsg.Size = Vector3.new(2,0.2,2)
  331. effectsg.Parent = Character
  332. effectsmsh.Parent = effectsg
  333. if heromode == true then
  334. effectsg.BrickColor = BrickColor.new("New Yeller")
  335. else
  336. if RAEG == true then
  337. effectsg.BrickColor = BrickColor.new("Bright red")
  338. else
  339. effectsg.BrickColor = BrickColor.new("white")
  340. end
  341. end
  342. effectsg.Reflectance = 0.25
  343. local LP = From
  344. local point1 = To
  345. local mg = (LP - point1).magnitude
  346. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  347. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  348. coroutine.resume(coroutine.create(function()
  349. for i = 0 , 1 , 0.2 do
  350. wait()
  351. effectsg.Transparency = 1*i
  352. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  353. end
  354. effectsg.Parent = nil
  355. end))
  356. end
  357. local newpos = prt1.Position
  358. local inc = rangepower
  359. repeat
  360. wait()
  361. rangepos = rangepos - 10
  362. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  363. hit2,pos = rayCast(newpos,dir.lookVector,inc,Character)
  364. drawtrail(newpos,pos)
  365. newpos = newpos + (dir.lookVector * inc)
  366. if inc >= 20 then
  367. inc = inc - 10
  368. end
  369. if hit2 ~= nil then
  370. rangepos = 0
  371. end
  372. until rangepos <= 0
  373. if hit2 ~= nil then
  374. local effectsmsh = Instance.new("SpecialMesh")
  375. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  376. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  377. effectsmsh.Scale = Vector3.new(3,3,3)
  378. local effectsg = Instance.new("Part")
  379. effectsg.formFactor = 3
  380. effectsg.CanCollide = false
  381. effectsg.Name = "Arrow"
  382. effectsg.Locked = true
  383. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  384. effectsg.Parent = modelzorz
  385. if heromode == true then
  386. effectsg.BrickColor = BrickColor.new("New Yeller")
  387. else
  388. if RAEG == true then
  389. effectsg.BrickColor = BrickColor.new("Bright red")
  390. else
  391. effectsg.BrickColor = BrickColor.new("white")
  392. end
  393. end
  394. effectsmsh.Parent = effectsg
  395. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  396. local efwel = Instance.new("Weld")
  397. efwel.Parent = effectsg
  398. efwel.Part0 = effectsg
  399. efwel.Part1 = hit2
  400. local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  401. --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75
  402. --local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5)
  403. local CJ = CFrame.new(HitPos)
  404. local C0 = effectsg.CFrame:inverse() * CJ
  405. local C1 = hit2.CFrame:inverse() * CJ
  406. efwel.C0 = C0
  407. efwel.C1 = C1
  408. efwel.Parent = effectsg
  409. Damg = 20
  410. if RAEG == true then
  411. Damg=Damg+5
  412. end
  413. hs(0.8)
  414. if heromode == true then
  415. magicsound(0.7)
  416. local c = game.Workspace:GetChildren();
  417. for i = 1, #c do
  418. local hum = c[i]:findFirstChild("Humanoid")
  419. if hum ~= nil and hum.Health ~= 0 then
  420. local head = c[i]:findFirstChild("Head");
  421. if head ~= nil then
  422. local targ = head.Position - effectsg.Position;
  423. local mag = targ.magnitude;
  424. if mag <= 15 and c[i].Name ~= Player.Name then
  425. wait()
  426. DBHit(head,effectsg,5)
  427. end
  428. end
  429. end
  430. end
  431. local msh1 = Instance.new("SpecialMesh") --Messy Script incoming >_>
  432. msh1.Scale = Vector3.new(0.01,0.01,0.01)
  433. msh1.MeshType = "Sphere"
  434. S=Instance.new("Part")
  435. S.Name="Effect"
  436. S.formFactor=0
  437. S.Size=Vector3.new(3,3,3)
  438. S.BrickColor=BrickColor.new("New Yeller")
  439. S.Reflectance = 0
  440. S.TopSurface=0
  441. S.BottomSurface=0
  442. S.Transparency=0
  443. S.Anchored=true
  444. S.CanCollide=false
  445. S.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  446. S.Parent=workspace
  447. msh1.Parent = S
  448. r=Instance.new("Part")
  449. r.Anchored=true
  450. r.Name="Ring"
  451. r.CanCollide=false
  452. r.TopSurface=0
  453. r.BottomSurface=0
  454. r.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(1,0,0)
  455. r.Parent=workspace
  456. local ring = Instance.new("SpecialMesh")
  457. ring.Parent = r
  458. ring.MeshId = "http://www.roblox.com/asset/?id=3270017"
  459. ring.Name = "RingMesh"
  460. r.RingMesh.Scale=Vector3.new(0.1,0.1,0.1)
  461. r.BrickColor=BrickColor.new("New Yeller")
  462. coroutine.resume(coroutine.create(function(par) for i=1, 9 do par.Transparency=i/9 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r)
  463. r=Instance.new("Part")
  464. r.Anchored=true
  465. r.Name="Ring"
  466. r.CanCollide=false
  467. r.TopSurface=0
  468. r.BottomSurface=0
  469. r.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(-1,0,0)
  470. r.Parent=workspace
  471. local ring = Instance.new("SpecialMesh")
  472. ring.Parent = r
  473. ring.MeshId = "http://www.roblox.com/asset/?id=3270017"
  474. ring.Name = "RingMesh"
  475. r.RingMesh.Scale=Vector3.new(0.1,0.1,0.1)
  476. r.BrickColor=BrickColor.new("New Yeller")
  477. coroutine.resume(coroutine.create(function(par) for i=1, 9 do par.Transparency=i/9 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r)
  478. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.4,0.4,0.4) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  479.  
  480. local msh1 = Instance.new("SpecialMesh")
  481. msh1.Scale = Vector3.new(0.01,0.01,0.01)
  482. msh1.MeshType = "Sphere"
  483. S=Instance.new("Part")
  484. S.Name="Effect"
  485. S.formFactor=0
  486. S.Size=Vector3.new(3,3,3)
  487. S.BrickColor=BrickColor.new("New Yeller")
  488. S.Reflectance = 0
  489. S.TopSurface=0
  490. S.BottomSurface=0
  491. S.Transparency=0
  492. S.Anchored=true
  493. S.CanCollide=false
  494. S.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  495. S.Parent=Character
  496. msh1.Parent = S
  497. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.3,0.3,0.3) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  498.  
  499. local msh1 = Instance.new("SpecialMesh")
  500. msh1.Scale = Vector3.new(1,0.5,1)
  501. msh1.MeshType = "Sphere"
  502. S=Instance.new("Part")
  503. S.Name="Effect"
  504. S.formFactor=0
  505. S.Size=Vector3.new(8,8,8)
  506. S.BrickColor=BrickColor.new("New Yeller")
  507. S.Reflectance = 0
  508. S.TopSurface=0
  509. S.BottomSurface=0
  510. S.Transparency=0
  511. S.Anchored=true
  512. S.CanCollide=false
  513. S.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  514. S.Parent=workspace
  515. msh1.Parent = S
  516. 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)
  517. end
  518. coroutine.resume(coroutine.create(function()
  519. wait(3)
  520. effectsg.Parent = nil
  521. end))
  522. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  523. hum = hit2.Parent.Humanoid
  524. attackdebounce = false
  525. Damagefunc1(hit2,Damg,15)
  526. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  527. hum = hit2.Parent.Parent.Humanoid
  528. attackdebounce = false
  529. Damagefunc1(hit2,Damg,15)
  530. end
  531. end
  532. end
  533.  
  534. function BouncingSpear(mouse)
  535. attack = true
  536. for i = 0,1,0.1 do
  537. wait()
  538. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0)
  539. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  540. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0)
  541. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  542. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  543. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  544. end
  545. wait(0.1)
  546. ss(1)
  547. coroutine.resume(coroutine.create(function()
  548. for i = 0,1,0.2 do
  549. wait()
  550. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  551. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0)
  552. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  553. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4)
  554. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  555. end
  556. end))
  557. Bouncing = true
  558. prt1.CanCollide = true
  559. spread2 = 100000
  560. cloning = 0
  561. wait()
  562. attack = true
  563. while wld1.Parent ~= nil and Bouncing == true and attack == true do
  564. if wld1.Parent == nil then
  565. Bouncing = false
  566. end
  567. cloning = cloning + 1
  568. if cloning == 5 and heromode == false then
  569. cloning = 0
  570. for i = 1,2 do
  571. coroutine.resume(coroutine.create(function()
  572. shoottrail2(mouse)
  573. end))
  574. end
  575. end
  576. shoottrail(mouse)
  577. --ShootArrow(mouse.hit.p, 200, mouse.Target)
  578. if heromode == true then
  579. rangepower = 40
  580. spread = 2000
  581. spread2 = 2500
  582. --spread2 = 100000
  583. --spread = 100000
  584. range = 30
  585. range2 = 200
  586. elseif heromode == false then
  587. rangepower = 10
  588. spread = 2000
  589. spread2 = 2500
  590. --spread2 = 100000
  591. --spread = 100000
  592. range = 50
  593. range2 = 200
  594. end
  595. wait(0)
  596. end
  597. wait(1)
  598. rangepower = 10
  599. spread = 0
  600. range = 1000
  601. range2 = 1000
  602. spread2 = 500
  603. cloning = 0
  604. Bouncing = false
  605. prt1.Anchored = false
  606. wld1.Parent = prt1
  607. wld1.Part0 = prt1
  608. wld1.Part1 = LeftArm
  609. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0)
  610. wld1.C1 = CFrame.new(0,0,0)
  611. if heromode == false then
  612. else
  613. wait(4)
  614. end
  615. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0)
  616. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  617. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  618. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  619. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  620. attack = false
  621. rangepower = 10
  622. end
  623.  
  624. function Smack()
  625. attack = true
  626. for i = 0,1,0.1 do
  627. wait()
  628. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,.5,0)
  629. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  630. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0)
  631. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  632. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  633. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  634. end
  635. wait(0.1)
  636. ss(1)
  637. coroutine.resume(coroutine.create(function()
  638. for i = 0,1,0.2 do
  639. wait()
  640. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  641. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0)
  642. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  643. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4)
  644. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  645. end
  646. end))
  647. con1=prt1.Touched:connect(function(hit) Damagefunc1(hit,20,15) end)
  648. --ShootArrow(mouse.hit.p, 200, mouse.Target)
  649. wait(1)
  650. prt1.Anchored = false
  651. wld1.Parent = prt1
  652. wld1.Part0 = prt1
  653. wld1.Part1 = LeftArm
  654. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,.5,0)
  655. wld1.C1 = CFrame.new(0,0,0)
  656. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,.5,0)
  657. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  658. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  659. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  660. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  661. attack = false
  662. con1:disconnect()
  663. end
  664.  
  665. function BodyThrow(mouse)
  666. attack = true
  667. for i = 0,1,0.1 do
  668. wait()
  669. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,.5,0)
  670. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  671. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0)
  672. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  673. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  674. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  675. end
  676. wait(0.1)
  677. ss(1)
  678. coroutine.resume(coroutine.create(function()
  679. for i = 0,1,0.2 do
  680. wait()
  681. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  682. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0)
  683. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  684. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4)
  685. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  686. end
  687. end))
  688. prt1.CanCollide = true
  689. shoottrail(mouse)
  690. --ShootArrow(mouse.hit.p, 200, mouse.Target)
  691. wait(1)
  692. prt1.Anchored = false
  693. wld1.Parent = prt1
  694. wld1.Part0 = prt1
  695. wld1.Part1 = LeftArm
  696. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,.5,0)
  697. wld1.C1 = CFrame.new(0,0,0)
  698. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,.5,0)
  699. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  700. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  701. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  702. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  703. attack = false
  704. rangepower = 10
  705. prt1.CanCollide = false
  706. end
  707.  
  708. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  709. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  710. end
  711.  
  712. spread = 0
  713. range = 1000
  714. rangepower = 10
  715. function shoottrail(mouse)
  716. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (prt1.Position-mouse.Hit.p).magnitude/100
  717. local dir = CFrame.new((prt1.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  718. local hit,pos = rayCast(prt1.Position,dir.lookVector,10,Character)
  719. local rangepos = range
  720. local function drawtrail(From,To)
  721. local effectsmsh = Instance.new("CylinderMesh")
  722. effectsmsh.Scale = Vector3.new(1,1,1)
  723. effectsmsh.Name = "Mesh"
  724. local effectsg = Instance.new("Part")
  725. effectsg.formFactor = 3
  726. effectsg.CanCollide = false
  727. effectsg.Name = "Eff"
  728. effectsg.Locked = true
  729. effectsg.Anchored = true
  730. effectsg.Size = Vector3.new(2,0.5,2)
  731. effectsg.Parent = workspace
  732. effectsmsh.Parent = effectsg
  733. effectsg.BrickColor = BrickColor.new("Navy blue")
  734. effectsg.Reflectance = 0.25
  735. local LP = From
  736. local point1 = To
  737. local mg = (LP - point1).magnitude
  738. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  739. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  740. --prt25.CFrame = effectsg.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(180),1.57,0)
  741. prt25.CFrame = effectsg.CFrame * CFrame.fromEulerAnglesXYZ(-1.57,0,1.57)
  742. wld1.Part0 = prt25
  743. wld1.Part1 = effectsg
  744. --wld1.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57)
  745. wld1.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57)
  746. wld1.C1 = CFrame.new(0,0,0)
  747. coroutine.resume(coroutine.create(function()
  748. for i = 0 , 1 , 0.1 do
  749. wait()
  750. prt1.CFrame = effectsg.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(180),1.57,0)
  751. effectsg.Transparency = 1*i
  752. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  753. end
  754. effectsg.Parent = nil
  755. end))
  756. end
  757. local newpos = prt1.Position
  758. local inc = rangepower
  759. repeat
  760. wait()
  761. rangepos = rangepos - 10
  762. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  763. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  764. drawtrail(newpos,pos)
  765. newpos = newpos + (dir.lookVector * inc)
  766. if inc >= 20 then
  767. inc = inc - 10
  768. end
  769. if hit ~= nil then
  770. rangepos = 0
  771. end
  772. until rangepos <= 0
  773. if hit ~= nil then
  774. local effectsmsh = Instance.new("SpecialMesh")
  775. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  776. effectsmsh.TextureId = "http://www.roblox.com/asset/?id=15886781"
  777. effectsmsh.Scale = Vector3.new(1,1,2.5)
  778. local effectsg = Instance.new("Part")
  779. effectsg.formFactor = 3
  780. effectsg.CanCollide = false
  781. effectsg.Name = "Arrow"
  782. effectsg.Locked = true
  783. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  784. effectsg.Parent = nil
  785. effectsmsh.Parent = effectsg
  786. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  787. prt1.CFrame = effectsg.CFrame
  788. wld1.Part0 = prt1
  789. wld1.Part1 = hit
  790. --local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  791. --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75
  792. local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5)
  793. prt1.CFrame = CFrame.new(HitPos) * CFrame.fromEulerAnglesXYZ(0,1.57,0)
  794. local CJ = CFrame.new(HitPos)
  795. local C0 = prt1.CFrame:inverse() * CJ
  796. local C1 = hit.CFrame:inverse() * CJ
  797. wld1.C0 = C0
  798. wld1.C1 = C1
  799. wld1.Parent = prt1
  800. Damg = 40
  801. hs(0.8)
  802. magicsound(0.7)
  803. local c = game.Workspace:GetChildren();
  804. for i = 1, #c do
  805. local hum = c[i]:findFirstChild("Humanoid")
  806. if hum ~= nil and hum.Health ~= 0 then
  807. local head = c[i]:findFirstChild("Head");
  808. if head ~= nil then
  809. local targ = head.Position - prt25.Position;
  810. local mag = targ.magnitude;
  811. if mag <= 15 and c[i].Name ~= Player.Name then
  812. wait()
  813. DBHit(head,prt25,30)
  814. end
  815. end
  816. end
  817. end
  818. coroutine.resume(coroutine.create(function()
  819. wait(15)
  820. effectsg.Parent = nil
  821. end))
  822. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  823. hum = hit.Parent.Humanoid
  824. Damagefunc1(hit,Damg,15)
  825. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  826. hum = hit.Parent.Parent.Humanoid
  827. Damagefunc1(hit,Damg,15)
  828. end
  829. end
  830. end
  831.  
  832. function Jump()
  833. attack=true
  834. local vel2 = Instance.new("BodyVelocity")
  835. vel2.Parent = Player.Character.Torso
  836. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  837. vel2.velocity = Vector3.new(0,1,0) * 100
  838. wait(0.1)
  839. vel2.Parent=nil
  840. attack=false
  841. end
  842.  
  843. Damagefunc1=function(hit,Damage,Knockback)
  844. if attackdebounce == false then
  845. attackdebounce = true
  846. coroutine.resume(coroutine.create(function()
  847. wait(0.1)
  848. attackdebounce = false
  849. end))
  850. if hit.Parent==nil then
  851. return
  852. end
  853. CPlayer=Bin
  854. h=hit.Parent:FindFirstChild("Humanoid")
  855. if h==nil then
  856. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  857. end
  858. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  859. if mana < 400 then
  860. mana = mana + math.random(20,30)
  861. end
  862. if mana > 400 then
  863. mana = 400
  864. end
  865. Damage=Damage
  866. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil or game.Players:GetPlayerFromCharacter(hit.Parent.Parent)~=nil then
  867. return
  868. end]]
  869. c=Instance.new("ObjectValue")
  870. c.Name="creator"
  871. c.Value=game.Players.LocalPlayer
  872. c.Parent=h
  873. game:GetService("Debris"):AddItem(c,.5)
  874. -- print(c.Value)
  875. if math.random(0,99)+math.random()<=5 then
  876. CRIT=true
  877. Damage=Damage*1.5
  878. --[[ Knockback=Knockback*2
  879. r=Instance.new("BodyAngularVelocity")
  880. r.P=3000
  881. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  882. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  883. r.Parent=hit.Parent.Torso]]
  884. critsound(2)
  885.  
  886. end
  887. Damage=Damage+math.random(0,10)
  888. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  889. h:TakeDamage(Damage)
  890. showDamage(hit.Parent,Damage,.5)
  891. vp=Instance.new("BodyVelocity")
  892. vp.P=500
  893. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  894. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  895. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  896. if Knockback>0 then
  897. vp.Parent=hit.Parent.Torso
  898. end
  899. game:GetService("Debris"):AddItem(vp,.25)
  900. --[[ r=Instance.new("BodyAngularVelocity")
  901. r.P=3000
  902. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  903. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  904. r.Parent=hit.Parent.Torso]]
  905. game:GetService("Debris"):AddItem(r,.5)
  906. c=Instance.new("ObjectValue")
  907. c.Name="creator"
  908. c.Value=Player
  909. c.Parent=h
  910. game:GetService("Debris"):AddItem(c,.5)
  911. CRIT=false
  912. hitDeb=true
  913. AttackPos=6
  914. end
  915. end
  916. end
  917.  
  918. function ss(pitch)
  919.  
  920. local SlashSound = Instance.new("Sound")
  921. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  922. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  923. SlashSound.Parent = workspace
  924. SlashSound.Volume = .7
  925. SlashSound.Pitch = pitch
  926. SlashSound.PlayOnRemove = true
  927. coroutine.resume(coroutine.create(function()
  928. wait(0)
  929. SlashSound.Parent = nil
  930. end))
  931. end
  932.  
  933. function hs(pitch)
  934. local SlashSound = Instance.new("Sound")
  935. SlashSound.SoundId = "http://roblox.com/asset/?id=10209590"
  936. SlashSound.Parent = workspace
  937. SlashSound.Volume = .5
  938. SlashSound.Pitch = pitch
  939. SlashSound.PlayOnRemove = true
  940. coroutine.resume(coroutine.create(function()
  941. wait(0)
  942. SlashSound.Parent = nil
  943. end))
  944. end
  945.  
  946. function magicsound(pitch)
  947.  
  948. local SlashSound = Instance.new("Sound")
  949. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  950. SlashSound.Parent = workspace
  951. SlashSound.Volume = .5
  952. SlashSound.Pitch = pitch
  953. SlashSound.PlayOnRemove = true
  954. coroutine.resume(coroutine.create(function()
  955. wait(0)
  956. SlashSound.Parent = nil
  957. end))
  958. end
  959.  
  960. DBHit=function(hit,DB,Dmg) --credits to turdulator for making this function :D
  961. if hit.Parent==nil then
  962. return
  963. end
  964. h=hit.Parent:FindFirstChild("Humanoid")
  965. if h==nil then
  966. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  967. end
  968. t=hit.Parent:FindFirstChild("Torso")
  969. if h~=nil and t~=nil then
  970. if h.Parent==Character then
  971. return
  972. end
  973. Damage=Dmg+math.random(2,10)
  974. h:TakeDamage(Damage)
  975. c=Instance.new("ObjectValue")
  976. c.Name="creator"
  977. c.Value=game.Players.LocalPlayer
  978. c.Parent=h
  979. game:GetService("Debris"):AddItem(c,.5)
  980. showDamage(hit.Parent,Damage,.5)
  981. vl=Instance.new("BodyVelocity")
  982. vl.P=4500
  983. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  984. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0)
  985. vl.Parent=t
  986. game:GetService("Debris"):AddItem(vl,.2)
  987. rl=Instance.new("BodyAngularVelocity")
  988. rl.P=3000
  989. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  990. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  991. rl.Parent=t
  992. game:GetService("Debris"):AddItem(rl,.2)
  993. else
  994. if hit.CanCollide==false then
  995. return
  996. end
  997. MagicCom:disconnect()
  998. -- DBExplode(DB)
  999. end
  1000. end
  1001.  
  1002. function ob1d(mouse)
  1003. if attack == true then return end
  1004. hold = true
  1005. Smack()
  1006. end
  1007.  
  1008. function ob1u(mouse)
  1009. hold = false
  1010. end
  1011.  
  1012. function Key(key,mouse)
  1013. if key == "u" then
  1014. coroutine.resume(coroutine.create(function()
  1015. wait(0.1)
  1016. wld1.Parent = prt1
  1017. wld1.Part0 = prt1
  1018. wld1.Part1 = LeftArm
  1019. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,.5,0)
  1020. wld1.C1 = CFrame.new(0,0,0)
  1021. attack = false
  1022. end))
  1023. end
  1024. if key == " " then
  1025. Jump(mouse)
  1026. end
  1027. if key == "r" then
  1028. hold = true
  1029. BodyThrow(mouse)
  1030. end
  1031. if key == "t" then
  1032. ThrowSpam2(mouse)
  1033. end
  1034. if key == "y" then
  1035. BouncingSpear(mouse)
  1036. end
  1037. end
  1038.  
  1039. function s(mouse)
  1040. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1041. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1042. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  1043. --mouse.KeyDown:connect(key,mouse)
  1044. mouse.KeyUp:connect(key2,mouse)
  1045. player = Player
  1046. ch = Character
  1047. RSH = ch.Torso["Right Shoulder"]
  1048. LSH = ch.Torso["Left Shoulder"]
  1049. --
  1050. RW.Part0 = ch.Torso
  1051. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1052. RW.C1 = CFrame.new(0, 0.5, 0)
  1053. RW.Part1 = ch["Right Arm"]
  1054. RW.Parent = ch.Torso
  1055. --_G.R = RW
  1056. --
  1057. LW.Part0 = ch.Torso
  1058. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1059. LW.C1 = CFrame.new(0, 0.5, 0)
  1060. LW.Part1 = ch["Left Arm"]
  1061. LW.Parent = ch.Torso
  1062. --_G.L = LW
  1063. --
  1064. end
  1065.  
  1066. function ds(mouse)
  1067. RW.Parent = nil
  1068. LW.Parent = nil
  1069. RSH.Parent = player.Character.Torso
  1070. LSH.Parent = player.Character.Torso
  1071. end
  1072.  
  1073. Bin.Selected:connect(s)
  1074. Bin.Deselected:connect(ds)
  1075.  
  1076. while true do
  1077. wait(0)
  1078. LeftArm.Transparency = 1
  1079. RightArm.Transparency = 1
  1080. LeftLeg.Transparency = 1
  1081. RightLeg.Transparency = 1
  1082. Torso.Transparency = 1
  1083. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement