Advertisement
Dark_EccentricYT

Untitled

Jan 30th, 2017
632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.43 KB | None | 0 0
  1. wait(1/60)
  2. --[[
  3. Disc Master script made by Fenrier.
  4. Made for an upcoming game I will be making. Don't expect it to be out anytime soon though.
  5. And hello hacker :D
  6. Have fun with my scripts by the way c:
  7. ]]
  8. Player = game:GetService("Players").LocalPlayer
  9. Character = Player.Character
  10. PlayerGui = Player.PlayerGui
  11. Backpack = Player.Backpack
  12. Torso = Character.Torso
  13. Head = Character.Head
  14. Humanoid = Character.Humanoid
  15. LeftArm = Character["Left Arm"]
  16. LeftLeg = Character["Left Leg"]
  17. RightArm = Character["Right Arm"]
  18. RightLeg = Character["Right Leg"]
  19. LS = Torso["Left Shoulder"]
  20. LH = Torso["Left Hip"]
  21. RS = Torso["Right Shoulder"]
  22. RH = Torso["Right Hip"]
  23. Neck = Torso.Neck
  24. it=Instance.new
  25. vt=Vector3.new
  26. cf=CFrame.new
  27. euler=CFrame.fromEulerAnglesXYZ
  28. angles=CFrame.Angles
  29. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  31. attack = false
  32. attacktype = 1
  33. damage = 5
  34. oridamage = 50
  35. attackdebounce = false
  36. ssdebounce=false
  37. MMouse=nil
  38. combo=0
  39. --player
  40. player = nil
  41. --save shoulders
  42. RSH, LSH = nil, nil
  43. --welds
  44. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  45. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  46.  
  47.  
  48. if Character:findFirstChild("Disc",true) ~= nil then
  49. Character:findFirstChild("Disc",true).Parent = nil
  50. end
  51. if Character:findFirstChild("Block",true) ~= nil then
  52. Character:findFirstChild("Block",true).Parent = nil
  53. end
  54.  
  55.  
  56. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  57. local fp = it("Part")
  58. fp.formFactor = formfactor
  59. fp.Parent = parent
  60. fp.Reflectance = reflectance
  61. fp.Transparency = transparency
  62. fp.CanCollide = false
  63. fp.Locked=true
  64. fp.BrickColor = brickcolor
  65. fp.Name = name
  66. fp.Size = size
  67. fp.Position = Torso.Position
  68. fp.BottomSurface="Smooth"
  69. fp.TopSurface="Smooth"
  70. fp:BreakJoints()
  71. return fp
  72. end
  73.  
  74. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  75. local mesh = it(Mesh)
  76. mesh.Parent = part
  77. if Mesh=="SpecialMesh" then
  78. mesh.MeshType = meshtype
  79. mesh.MeshId = meshid
  80. end
  81. mesh.Offset=offset
  82. mesh.Scale=scale
  83. return mesh
  84. end
  85.  
  86. function weld(parent,part0,part1,c0)
  87. local weld = it("Weld")
  88. weld.Parent = parent
  89. weld.Part0 = part0
  90. weld.Part1 = part1
  91. weld.C0 = c0
  92. return weld
  93. end
  94.  
  95. local modelzorz = Instance.new("Model")
  96. modelzorz.Parent = Character
  97. modelzorz.Name = "Disc"
  98.  
  99. local prt1=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part1",vt(1,1,1))
  100. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part2",vt(1,1,1))
  101. local prt3=part(3,modelzorz,0.2,0,Torso.BrickColor,"Part3",vt(1,1,1))
  102. local prt3a=part(3,modelzorz,0,1,Torso.BrickColor,"Part3a",vt(1,1,1))
  103. local prt3b=part(3,modelzorz,0,1,Torso.BrickColor,"Part3b",vt(1,1,1))
  104. local prt4=part(3,modelzorz,0,1,Torso.BrickColor,"Part4",vt(1,1,1))
  105. local prt5=part(3,modelzorz,0,1,BrickColor.new("Black"),"Part5",vt(1,0.5,1))
  106. local prt11=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part11",vt(1,1,1))
  107. local prt21=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part21",vt(1,1,1))
  108. local prt31=part(3,modelzorz,0.2,0,Torso.BrickColor,"Part31",vt(1,1,1))
  109. local prt3a1=part(3,modelzorz,0,1,Torso.BrickColor,"Part3a1",vt(1,1,1))
  110. local prt3b1=part(3,modelzorz,0,1,Torso.BrickColor,"Part3b1",vt(1,1,1))
  111. local prt41=part(3,modelzorz,0,1,Torso.BrickColor,"Part41",vt(1,1,1))
  112. local prt51=part(3,modelzorz,0,1,BrickColor.new("Black"),"Part51",vt(1,0.5,1))
  113.  
  114. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1.01,0.1,1.01))
  115. local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.7,0.2,0.7))
  116. local msh3=mesh("SpecialMesh",prt3,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  117. local msh3a=mesh("CylinderMesh",prt3a,"","",vt(0,0,0),vt(1,0.05,1))
  118. local msh3b=mesh("CylinderMesh",prt3b,"","",vt(0,0,0),vt(0.5,0.05,0.5))
  119. local msh4=mesh("CylinderMesh",prt4,"","",vt(0,0,0),vt(1,0.05,1))
  120. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1,1,1))
  121. local msh11=mesh("BlockMesh",prt11,"","",vt(0,0,0),vt(1.01,0.1,1.01))
  122. local msh21=mesh("CylinderMesh",prt21,"","",vt(0,0,0),vt(0.7,0.2,0.7))
  123. local msh31=mesh("SpecialMesh",prt31,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  124. local msh3a1=mesh("CylinderMesh",prt3a1,"","",vt(0,0,0),vt(1,0.05,1))
  125. local msh3b1=mesh("CylinderMesh",prt3b1,"","",vt(0,0,0),vt(0.5,0.05,0.5))
  126. local msh41=mesh("CylinderMesh",prt41,"","",vt(0,0,0),vt(1,0.05,1))
  127. local msh51=mesh("BlockMesh",prt51,"","",vt(0,0,0),vt(1,1,1))
  128.  
  129. local wld1=weld(prt1,prt1,LeftArm,euler(0,0,0)*cf(0,0.6,0))
  130. local wld2=weld(prt2,prt2,prt1,euler(0,0,1.57)*cf(0.5,0,0))
  131. local wld3=weld(prt3,prt3,prt2,cf(0,0,0))
  132. local wld3a=weld(prt3a,prt3a,prt3,cf(0,0.2,0))
  133. local wld3b=weld(prt3b,prt3b,prt3a,cf(0,0,0))
  134. local wld4=weld(prt4,prt4,prt3b,cf(0,0,0))
  135. local wld5=weld(prt5,prt5,prt4,cf(0,0,0))
  136. local wld11=weld(prt11,prt11,RightArm,euler(0,3.14,0)*cf(0,0.6,0))
  137. local wld21=weld(prt21,prt21,prt11,euler(0,0,1.57)*cf(0.5,0,0))
  138. local wld31=weld(prt31,prt31,prt21,cf(0,0,0))
  139. local wld3a1=weld(prt3a1,prt3a1,prt31,cf(0,0.2,0))
  140. local wld3b1=weld(prt3b1,prt3b1,prt3a1,cf(0,0,0))
  141. local wld41=weld(prt41,prt41,prt3b1,cf(0,0,0))
  142. local wld51=weld(prt51,prt51,prt41,cf(0,0,0))
  143.  
  144. coroutine.resume(coroutine.create(function()
  145. while true do
  146. wait()
  147. wld4.C0=wld4.C0*euler(0,0.3,0)
  148. wld41.C0=wld41.C0*euler(0,0.3,0)
  149. end
  150. end))
  151.  
  152. numb=0
  153. for i=1,9 do
  154. if i==1 or i==2 or i==4 or i==5 or i==7 or i==8 then
  155. local prt5=part(3,modelzorz,0.2,0.2,Torso.BrickColor,"Part5",vt(1,1,1))
  156. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.1,0.4,0.1))
  157. local wld5=weld(prt5,prt5,prt4,euler(1.57,0,0)*cf(0.5,0,0)*euler(0,numb,0))
  158. local prt51=part(3,modelzorz,0.2,0.2,Torso.BrickColor,"Part51",vt(1,1,1))
  159. local msh51=mesh("BlockMesh",prt51,"","",vt(0,0,0),vt(0.1,0.4,0.1))
  160. local wld51=weld(prt51,prt51,prt41,euler(1.57,0,0)*cf(0.5,0,0)*euler(0,numb,0))
  161. --[[coroutine.resume(coroutine.create(function(Part,Part2)
  162. while Part.Parent~=nil do
  163. b=Part:Clone()
  164. b.Parent=workspace
  165. b.Anchored=true
  166. b.Reflectance=0
  167. b.CFrame=Part.CFrame
  168. b1=Part2:Clone()
  169. b1.Parent=workspace
  170. b1.Anchored=true
  171. b1.Reflectance=0
  172. b1.CFrame=Part2.CFrame
  173. coroutine.resume(coroutine.create(function(Ppart,Ppart2)
  174. game:GetService("Debris"):AddItem(Ppart,.5)
  175. game:GetService("Debris"):AddItem(Ppart2,.5)
  176. for i=0,1,0.2 do
  177. wait()
  178. Ppart.Transparency=i
  179. Ppart2.Transparency=i
  180. end
  181. end),b,b1)
  182. wait(0.6)
  183. end
  184. end),prt5,prt51)]]
  185. end
  186. numb=numb+0.697
  187. end
  188.  
  189. if (script.Parent.className ~= "HopperBin") then
  190. Tool = Instance.new("HopperBin")
  191. Tool.Parent = Backpack
  192. Tool.Name = "Disc"
  193. script.Parent = Tool
  194. end
  195. Bin = script.Parent
  196.  
  197. local bg = it("BodyGyro")
  198. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  199. bg.P = 20e+003
  200. bg.Parent = nil
  201.  
  202. so = function(id,par,vol,pit)
  203. coroutine.resume(coroutine.create(function()
  204. local sou = Instance.new("Sound",par or workspace)
  205. sou.Volume=vol
  206. sou.Pitch=pit or 1
  207. sou.SoundId=id
  208. wait()
  209. sou:play()
  210. wait(6)
  211. sou:Remove()
  212. end))
  213. end
  214.  
  215.  
  216.  
  217. function hideanim()
  218. equipped=false
  219. wait(0.1)
  220. bg.Parent=nil
  221. end
  222.  
  223. function equipanim()
  224. equipped=true
  225. wait(0.1)
  226. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0.3)
  227. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  228. LW.C0=cf(-1.5, 0.5, 0) * euler(0.2,0,-0.3)
  229. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  230. end
  231.  
  232. function oneslash()
  233. attack=true
  234. combo=1
  235. for i=0,1,0.1 do
  236. wait()
  237. LW.C0=cf(-1.5, 0.5, 0) * euler(0.2-0.4*i,0,-0.3-0.5*i)
  238. end
  239. bg.Parent=Head
  240. CF = Head.CFrame
  241. bg.cframe=CF
  242. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  243. con1=prt5.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  244. for i=0,1,0.2 do
  245. wait()
  246. Torso.Neck.C0=necko*euler(0,0,1.57*i)
  247. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.2+0.2*i,0,-0.8-0.77*i)
  248. end
  249. for i=0,1,0.2 do
  250. wait()
  251. wld3b.C0=cf(-12*i,0,0)
  252. so("http://roblox.com/asset/?id=10209640",prt4,1,3)
  253. end
  254. for i=0,1,0.2 do
  255. wait()
  256. wld3b.C0=cf(-12+12*i,0,0)
  257. so("http://roblox.com/asset/?id=10209640",prt4,1,3)
  258. end
  259. con1:disconnect()
  260. wld3b.C0=cf(0,0,0)
  261. attack=false
  262. end
  263.  
  264. function twoslash()
  265. attack=true
  266. combo=2
  267. so("http://roblox.com/asset/?id=10209640",RightArm,1,1)
  268. con1=prt51.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  269. for i=0,1,0.2 do
  270. wait()
  271. Torso.Neck.C0=necko*euler(0,0,1.57-3.14*i)
  272. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.2*i,0,0.3+1.27*i)
  273. end
  274. for i=0,1,0.2 do
  275. wait()
  276. wld3b1.C0=cf(-12*i,0,0)
  277. so("http://roblox.com/asset/?id=10209640",prt41,1,3)
  278. end
  279. for i=0,1,0.2 do
  280. wait()
  281. wld3b1.C0=cf(-12+12*i,0,0)
  282. so("http://roblox.com/asset/?id=10209640",prt41,1,3)
  283. end
  284. con1:disconnect()
  285. wld3b1.C0=cf(0,0,0)
  286. attack=false
  287. end
  288.  
  289. function Throw()
  290. attack=true
  291. for i=0,1,0.1 do
  292. wait()
  293. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(0.2+0.4*i,0,0.3-1.2*i)
  294. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57*i,0)
  295. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.2+0.4*i,0,-0.3+1.2*i)
  296. LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0)
  297. end
  298. local disc1=part(3,modelzorz,0,0.5,Torso.BrickColor,"Disc Part1",vt(1,0.5,1))
  299. local discmsh1=mesh("CylinderMesh",disc1,"","",vt(0,0,0),vt(1.01,0.1,1.01))
  300. local discwld1=weld(disc1,disc1,prt3a,euler(0,0,0)*cf(0,0,0))
  301. local disc2=part(3,modelzorz,0,0.5,Torso.BrickColor,"Disc Part2",vt(1,0.5,1))
  302. local discmsh2=mesh("CylinderMesh",disc2,"","",vt(0,0,0),vt(1.01,0.1,1.01))
  303. local discwld2=weld(disc2,disc2,prt3a1,euler(0,0,0)*cf(0,0,0))
  304. for i=1,0,-0.1 do
  305. wait()
  306. disc1.Transparency=i
  307. disc2.Transparency=i
  308. end
  309. for i=0,1,0.1 do
  310. wait()
  311. RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(0.6+0.4*i,0,-0.9-0.2*i)
  312. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,0)
  313. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(0.6+0.4*i,0,0.9+0.2*i)
  314. LW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  315. end
  316. wait(2)
  317. disc1.Parent=nil
  318. disc2.Parent=nil
  319. attack=false
  320. end
  321.  
  322. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  323. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  324. end
  325.  
  326. Damagefunc1=function(hit,Damage,Knockback)
  327. if hit.Parent==nil then
  328. return
  329. end
  330. CPlayer=Bin
  331. h=hit.Parent:FindFirstChild("Humanoid")
  332. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  333. if attackdebounce == false then
  334. attackdebounce = true
  335. coroutine.resume(coroutine.create(function()
  336. wait(0.2)
  337. attackdebounce = false
  338. end))
  339. Damage=Damage
  340. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  341. return
  342. end]]
  343. -- hs(hit,1.2)
  344. c=Instance.new("ObjectValue")
  345. c.Name="creator"
  346. c.Value=game.Players.LocalPlayer
  347. c.Parent=h
  348. game:GetService("Debris"):AddItem(c,.5)
  349. Damage=Damage+math.random(0,10)
  350. -- h:TakeDamage(Damage)
  351. blocked=false
  352. block=hit.Parent:findFirstChild("Block")
  353. if block~=nil then
  354. print("herp")
  355. if block.Value>0 then
  356. blocked=true
  357. block.Value=block.Value-1
  358. print(block.Value)
  359. end
  360. end
  361. if blocked==false then
  362. -- h:TakeDamage(Damage)
  363. h.Health=h.Health-Damage
  364. showDamage(hit.Parent,Damage,.5)
  365. else
  366. h:TakeDamage(1)
  367. showDamage(hit.Parent,1,.5)
  368. end
  369. so("http://roblox.com/asset/?id=10209583",hit,1,1)
  370. vp=Instance.new("BodyVelocity")
  371. vp.P=500
  372. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  373. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  374. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  375. if Knockback>0 then
  376. vp.Parent=hit.Parent.Torso
  377. end
  378. game:GetService("Debris"):AddItem(vp,.25)
  379. game:GetService("Debris"):AddItem(r,.5)
  380. c=Instance.new("ObjectValue")
  381. c.Name="creator"
  382. c.Value=Player
  383. c.Parent=h
  384. game:GetService("Debris"):AddItem(c,.5)
  385. CRIT=false
  386. hitDeb=true
  387. AttackPos=6
  388. end
  389. end
  390. end
  391.  
  392. showDamage=function(Char,Dealt,du)
  393. m=Instance.new("Model")
  394. m.Name=tostring(Dealt)
  395. h=Instance.new("Humanoid")
  396. h.Health=0
  397. h.MaxHealth=0
  398. h.Parent=m
  399. c=Instance.new("Part")
  400. c.Transparency=0
  401. c.BrickColor=BrickColor:Red()
  402. if CRIT==true then
  403. c.BrickColor=BrickColor.new("Really red")
  404. end
  405. c.Name="Head"
  406. c.TopSurface=0
  407. c.BottomSurface=0
  408. c.formFactor="Plate"
  409. c.Size=Vector3.new(1,.4,1)
  410. ms=Instance.new("CylinderMesh")
  411. ms.Scale=Vector3.new(.8,.8,.8)
  412. if CRIT==true then
  413. ms.Scale=Vector3.new(1,1.25,1)
  414. end
  415. ms.Parent=c
  416. c.Reflectance=0
  417. Instance.new("BodyGyro").Parent=c
  418. c.Parent=m
  419. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  420. f=Instance.new("BodyPosition")
  421. f.P=2000
  422. f.D=100
  423. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  424. f.position=c.Position+Vector3.new(0,3,0)
  425. f.Parent=c
  426. game:GetService("Debris"):AddItem(m,.5+du)
  427. c.CanCollide=false
  428. m.Parent=workspace
  429. c.CanCollide=false
  430. end
  431.  
  432. function ob1d(mouse)
  433. if attack == true then return end
  434. hold=true
  435. --attack=true
  436. if combo==0 then
  437. oneslash()
  438. elseif combo==1 then
  439. twoslash()
  440. end
  441. coroutine.resume(coroutine.create(function()
  442. wait(0.5)
  443. if attack==false then
  444. combo=0
  445. bg.Parent=nil
  446. Torso.Neck.C0=necko
  447. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0.3)
  448. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  449. LW.C0=cf(-1.5, 0.5, 0) * euler(0.2,0,-0.3)
  450. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  451. end
  452. end))
  453. end
  454.  
  455. function ob1u(mouse)
  456. hold = false
  457. end
  458.  
  459. buttonhold = false
  460.  
  461. function key(key)
  462. if attack == true then return end
  463. if key=="z" then
  464. Throw()
  465. end
  466. Torso.Neck.C0=necko
  467. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0.3)
  468. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  469. LW.C0=cf(-1.5, 0.5, 0) * euler(0.2,0,-0.3)
  470. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  471. Humanoid.WalkSpeed=16
  472. end
  473.  
  474. function key2(key)
  475. end
  476.  
  477. function s(mouse)
  478. mouse.Button1Down:connect(function() ob1d(mouse) end)
  479. mouse.Button1Up:connect(function() ob1u(mouse) end)
  480. mouse.KeyDown:connect(key)
  481. mouse.KeyUp:connect(key2)
  482. unsheathed = true
  483. player = Player
  484. ch = Character
  485. MMouse = mouse
  486. RSH = ch.Torso["Right Shoulder"]
  487. LSH = ch.Torso["Left Shoulder"]
  488. --
  489. RSH.Parent = nil
  490. LSH.Parent = nil
  491. --
  492. RW.Part0 = ch.Torso
  493. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  494. RW.C1 = CFrame.new(0, 0.5, 0)
  495. RW.Part1 = ch["Right Arm"]
  496. RW.Parent = ch.Torso
  497. --_G.R = RW
  498. --
  499. LW.Part0 = ch.Torso
  500. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  501. LW.C1 = CFrame.new(0, 0.5, 0)
  502. LW.Part1 = ch["Left Arm"]
  503. LW.Parent = ch.Torso
  504. --_G.L = LW
  505. --
  506. equipanim()
  507. end
  508.  
  509. function ds(mouse)
  510. hideanim()
  511. wait(0)
  512. RW.Parent = nil
  513. LW.Parent = nil
  514. RSH.Parent = player.Character.Torso
  515. LSH.Parent = player.Character.Torso
  516. end
  517.  
  518. Bin.Selected:connect(s)
  519. Bin.Deselected:connect(ds)
  520. print("Disc Shooter loaded.")
  521. -- mediafire
  522. --[[
  523. Copyrighted (C) Fenrier 2013
  524. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement