Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.51 KB | None | 0 0
  1. if script.Parent.className ~= "HopperBin" then
  2. h = Instance.new("HopperBin")
  3. local admin = game.Players.ic3w0lf589
  4. h.Name = "Staff"
  5. script.Parent = h
  6. h.Parent = admin.Backpack
  7. end
  8.  
  9. bin = script.Parent
  10. player = bin.Parent.Parent.Character
  11. rarm = player["Right Arm"]
  12. larm = player["Left Arm"]
  13. player.Humanoid.MaxHealth = 50
  14. visible = true
  15. parts = {}
  16.  
  17. function Check(pos)
  18. local hurt = false
  19. local players = game.Players:GetChildren()
  20. for i = 1, #players do
  21. if players[i].Character and hurt == false then
  22. local parts = players[i].Character:GetChildren()
  23. for q = 1, #parts do
  24. if parts[q].className == "Part" and hurt == false then
  25. local range = math.sqrt(math.pow(parts[q].Size.Z, 2) + math.sqrt(math.pow(parts[q].Size.X, 2) + math.pow(parts[q].Size.Y, 2)))
  26. if (found - parts[q].Position).magnitude <= range then
  27. hurt = true
  28. character = parts[q].Parent
  29. humanoid = character.Humanoid
  30. character.Torso.CFrame = character.Torso.CFrame*CFrame.Angles(2,2,2)--Oen, here you put what you want it to do. For example, humanoid:TakeDamage(25) :D
  31. humanoid:TakeDamage(50)
  32. humanoid.Sit = true
  33. end
  34. end
  35. end
  36. end
  37. end
  38. end
  39.  
  40. function clean(min,thing2)
  41. while min.Humanoid.Health ~= 0 do
  42. local a = game.Players:GetChildren()
  43. for i = 1, #a do
  44. wait()
  45. if (a[i].Character.Torso.Position - thing2.Position).magnitude < 5 then
  46. a[i].Character.Humanoid:TakeDamage(5)
  47. end
  48. end
  49. wait()
  50. end
  51. min:remove()
  52. end
  53.  
  54. function fire(v)
  55. local spawnPos = (tip2.CFrame * CFrame.new(0, 1, 0)).p
  56. local HitSpot = RayCast(spawnPos, v)
  57. local distance = (HitSpot - spawnPos).magnitude
  58. start = nil
  59. finish = nil
  60. local num = math.random(3, 10)
  61. for i = distance / num, distance, distance / num do
  62. if start == nil then
  63. start = tip2.CFrame.p
  64. elseif start ~= nil then
  65. start = finish
  66. end
  67. finish = CFrame.new(spawnPos, HitSpot)
  68. if i ~= distance then
  69. finish = (finish * CFrame.new(math.random(-5, 5), math.random(-1, 1), -i)).p
  70. else
  71. finish = HitSpot
  72. end
  73. local P = Instance.new("Part")
  74. P.Name = "Magic"
  75. P.formFactor = 0
  76. P.Size = Vector3.new(1, 1, (start - finish).magnitude)
  77. P.Parent = game.Workspace
  78. P.BrickColor = BrickColor.new(1006)
  79. P.Anchored = true
  80. P.CanCollide = false
  81. P.TopSurface = "Smooth"
  82. P.BottomSurface = "Smooth"
  83. P.Transparency = 0
  84. m = Instance.new("BlockMesh")
  85. m.Scale = Vector3.new(.25, .25, 1)
  86. m.Offset = Vector3.new(0, -1000, 0)
  87. m.VertexColor = Vector3.new(math.huge, math.huge, math.huge)
  88. m.Parent = P
  89. P.CFrame = CFrame.new(start, finish)
  90. P.CFrame = P.CFrame * CFrame.new(0, 1000, P.Size.Z / -2)
  91. table.insert(parts, P)
  92. game:GetService("Debris"):AddItem(P, 2.5)
  93. end
  94. end
  95.  
  96. function RayCast(start, v)
  97.  
  98. local ray = Instance.new("Part")
  99. ray.Parent = game.Workspace
  100. ray.Anchored = true
  101. ray.CFrame = CFrame.new(start)
  102. ray.Size = Vector3.new(1,1,1)
  103. ray.Shape = 0
  104. ray.BottomSurface = 0
  105. ray.TopSurface = 0
  106. ray.Name = "Magic"
  107. ray.Elasticity = 0
  108. ray.Reflectance = 0
  109. ray.Friction = 0
  110. ray.Transparency = 0
  111.  
  112. local finding = true
  113. far = 1000
  114.  
  115. while finding do
  116. far = far - 1
  117. if far > 0 then
  118. local see = ray.Position + v
  119. ray.Position = ray.Position + v
  120. if ray.Position ~= see then
  121. finding = false
  122. found = see
  123. end
  124. else
  125. finding = false
  126. found = ray.Position
  127. end
  128. end
  129.  
  130. ray:remove()
  131. Check(found)
  132. return found
  133. end
  134.  
  135. function kill(tar)
  136. while tar.Parent.Humanoid.Health ~= 0 do
  137. tar.Parent.Humanoid.Health = tar.Parent.Humanoid.Health -1
  138. wait()
  139. end
  140. end
  141.  
  142. bin.Selected:connect(function(mouse)
  143. if player.Torso:findFirstChild("Right Shoulder") ~= nil then
  144. rs = player.Torso["Right Shoulder"]
  145. rs.Part1 = nil
  146. end
  147. if player.Torso:findFirstChild("Left Shoulder") ~= nil then
  148. ls = player.Torso["Left Shoulder"]
  149. ls.Part1 = nil
  150. end
  151. if player:FindFirstChild("check") == nil then
  152. rns = Instance.new("Weld")
  153. rns.Parent = player.Torso
  154. rns.Part0 = rns.Parent
  155. rns.Part1 = player["Right Arm"]
  156. rns.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  157. lns = Instance.new("Weld")
  158. lns.Parent = player.Torso
  159. lns.Part0 = lns.Parent
  160. lns.Part1 = player["Left Arm"]
  161. lns.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  162. rblade = Instance.new("Part")
  163. rblade.BrickColor = BrickColor.new(1003)
  164. rblade.Name ="check"
  165. rblade.Parent = player
  166. rblade.CanCollide = false
  167. rblade.Size = Vector3.new(1,8,1)
  168. rblade.formFactor = "Symmetric"
  169. rblade.TopSurface = 0
  170. rblade.BottomSurface = 0
  171. rbm = Instance.new("BlockMesh")
  172. rbm.Parent = rblade
  173. rbm.Scale = Vector3.new(.4,1,.4)
  174. rbw = Instance.new("Weld")
  175. rbw.Parent = rblade
  176. rbw.Part0 = rarm
  177. rbw.Part1 = rblade
  178. rbw.C1 = CFrame.new(0,0,1) *CFrame.Angles((math.pi*.5),(math.pi*0),(math.pi*0))
  179. tip = Instance.new("Part")
  180. tip.CanCollide = false
  181. tip.TopSurface = 0
  182. tip.BottomSurface = 0
  183. tip.Parent = rblade
  184. tip.Size = Vector3.new(1,1,1)
  185. tip.formFactor = "Symmetric"
  186. tip.BrickColor = BrickColor.new(1004)
  187. tipm = Instance.new("BlockMesh")
  188. tipm.Scale = Vector3.new(.41,.2,.41)
  189. tipm.Parent = tip
  190. tipw = Instance.new("Weld")
  191. tipw.Parent = rblade
  192. tipw.Part0 = rblade
  193. tipw.Part1 = tip
  194. tipw.C1 = CFrame.new(0,3.5,0)
  195. tip2 = Instance.new("Part")
  196. tip2.CanCollide = false
  197. tip2.TopSurface = 0
  198. tip2.BottomSurface = 0
  199. tip2.Parent = rblade
  200. tip2.Size = Vector3.new(1,1,1)
  201. tip2.formFactor = "Symmetric"
  202. tip2.BrickColor = BrickColor.new(1004)
  203. tip2m = Instance.new("BlockMesh")
  204. tip2m.Scale = Vector3.new(.41,.2,.41)
  205. tip2m.Parent = tip2
  206. tip2w = Instance.new("Weld")
  207. tip2w.Parent = rblade
  208. tip2w.Part0 = rblade
  209. tip2w.Part1 = tip2
  210. tip2w.C1 = CFrame.new(0,-3.5,0)
  211. tip3 = Instance.new("Part")
  212. tip3.CanCollide = false
  213. tip3.TopSurface = 0
  214. tip3.BottomSurface = 0
  215. tip3.Parent = rblade
  216. tip3.Size = Vector3.new(1,1,1)
  217. tip3.formFactor = "Symmetric"
  218. tip3.BrickColor = BrickColor.new(1004)
  219. tip3m = Instance.new("BlockMesh")
  220. tip3m.Scale = Vector3.new(.41,.2,.41)
  221. tip3m.Parent = tip3
  222. tip3w = Instance.new("Weld")
  223. tip3w.Parent = rblade
  224. tip3w.Part0 = rblade
  225. tip3w.Part1 = tip3
  226. tip3w.C1 = CFrame.new(0,-.5,0)
  227. tip4 = Instance.new("Part")
  228. tip4.CanCollide = false
  229. tip4.TopSurface = 0
  230. tip4.BottomSurface = 0
  231. tip4.Parent = rblade
  232. tip4.Size = Vector3.new(1,1,1)
  233. tip4.formFactor = "Symmetric"
  234. tip4.BrickColor = BrickColor.new(1004)
  235. tip4m = Instance.new("BlockMesh")
  236. tip4m.Scale = Vector3.new(.41,.2,.41)
  237. tip4m.Parent = tip4
  238. tip4w = Instance.new("Weld")
  239. tip4w.Parent = rblade
  240. tip4w.Part0 = rblade
  241. tip4w.Part1 = tip4
  242. tip4w.C1 = CFrame.new(0,.5,0)
  243. tip5 = Instance.new("Part")
  244. tip5.CanCollide = false
  245. tip5.TopSurface = 0
  246. tip5.BottomSurface = 0
  247. tip5.Parent = rblade
  248. tip5.Size = Vector3.new(1,1,1)
  249. tip5.formFactor = "Symmetric"
  250. tip5.BrickColor = BrickColor.new(1004)
  251. tip5m = Instance.new("BlockMesh")
  252. tip5m.Scale = Vector3.new(.41,.2,.41)
  253. tip5m.Parent = tip5
  254. tip5w = Instance.new("Weld")
  255. tip5w.Parent = rblade
  256. tip5w.Part0 = rblade
  257. tip5w.Part1 = tip5
  258. tip5w.C1 = CFrame.new(0,0,0)
  259. tip6 = Instance.new("Part")
  260. tip6.CanCollide = false
  261. tip6.TopSurface = 0
  262. tip6.BottomSurface = 0
  263. tip6.Parent = rblade
  264. tip6.Size = Vector3.new(1,1,1)
  265. tip6.formFactor = "Symmetric"
  266. tip6.BrickColor = BrickColor.new(1004)
  267. tip6m = Instance.new("BlockMesh")
  268. tip6m.Scale = Vector3.new(.05,.6,.41)
  269. tip6m.Parent = tip6
  270. tip6w = Instance.new("Weld")
  271. tip6w.Parent = rblade
  272. tip6w.Part0 = rblade
  273. tip6w.Part1 = tip6
  274. tip6w.C1 = CFrame.new(0,-3,0)
  275. tip7 = Instance.new("Part")
  276. tip7.CanCollide = false
  277. tip7.TopSurface = 0
  278. tip7.BottomSurface = 0
  279. tip7.Parent = rblade
  280. tip7.Size = Vector3.new(1,1,1)
  281. tip7.formFactor = "Symmetric"
  282. tip7.BrickColor = BrickColor.new(1004)
  283. tip7m = Instance.new("BlockMesh")
  284. tip7m.Scale = Vector3.new(.41,.6,.05)
  285. tip7m.Parent = tip7
  286. tip7w = Instance.new("Weld")
  287. tip7w.Parent = rblade
  288. tip7w.Part0 = rblade
  289. tip7w.Part1 = tip7
  290. tip7w.C1 = CFrame.new(0,-3,0)
  291. tip6a = Instance.new("Part")
  292. tip6a.CanCollide = false
  293. tip6a.TopSurface = 0
  294. tip6a.BottomSurface = 0
  295. tip6a.Parent = rblade
  296. tip6a.Size = Vector3.new(1,1,1)
  297. tip6a.formFactor = "Symmetric"
  298. tip6a.BrickColor = BrickColor.new(1004)
  299. tip6am = Instance.new("BlockMesh")
  300. tip6am.Scale = Vector3.new(.15,.6,.41)
  301. tip6am.Parent = tip6a
  302. tip6aw = Instance.new("Weld")
  303. tip6aw.Parent = rblade
  304. tip6aw.Part0 = rblade
  305. tip6aw.Part1 = tip6a
  306. tip6aw.C1 = CFrame.new(0,-2.5,0)
  307. tip7a = Instance.new("Part")
  308. tip7a.CanCollide = false
  309. tip7a.TopSurface = 0
  310. tip7a.BottomSurface = 0
  311. tip7a.Parent = rblade
  312. tip7a.Size = Vector3.new(1,1,1)
  313. tip7a.formFactor = "Symmetric"
  314. tip7a.BrickColor = BrickColor.new(1004)
  315. tip7am = Instance.new("BlockMesh")
  316. tip7am.Scale = Vector3.new(.41,.6,.15)
  317. tip7am.Parent = tip7a
  318. tip7aw = Instance.new("Weld")
  319. tip7aw.Parent = rblade
  320. tip7aw.Part0 = rblade
  321. tip7aw.Part1 = tip7a
  322. tip7aw.C1 = CFrame.new(0,-2.5,0)
  323. tip6b = Instance.new("Part")
  324. tip6b.CanCollide = false
  325. tip6b.TopSurface = 0
  326. tip6b.BottomSurface = 0
  327. tip6b.Parent = rblade
  328. tip6b.Size = Vector3.new(1,1,1)
  329. tip6b.formFactor = "Symmetric"
  330. tip6b.BrickColor = BrickColor.new(1004)
  331. tip6bm = Instance.new("BlockMesh")
  332. tip6bm.Scale = Vector3.new(.05,.6,.41)
  333. tip6bm.Parent = tip6b
  334. tip6bw = Instance.new("Weld")
  335. tip6bw.Parent = rblade
  336. tip6bw.Part0 = rblade
  337. tip6bw.Part1 = tip6b
  338. tip6bw.C1 = CFrame.new(0,-2,0)
  339. tip7b = Instance.new("Part")
  340. tip7b.CanCollide = false
  341. tip7b.TopSurface = 0
  342. tip7b.BottomSurface = 0
  343. tip7b.Parent = rblade
  344. tip7b.Size = Vector3.new(1,1,1)
  345. tip7b.formFactor = "Symmetric"
  346. tip7b.BrickColor = BrickColor.new(1004)
  347. tip7bm = Instance.new("BlockMesh")
  348. tip7bm.Scale = Vector3.new(.41,.6,.05)
  349. tip7bm.Parent = tip7b
  350. tip7bw = Instance.new("Weld")
  351. tip7bw.Parent = rblade
  352. tip7bw.Part0 = rblade
  353. tip7bw.Part1 = tip7b
  354. tip7bw.C1 = CFrame.new(0,-2,0)
  355.  
  356. rblade.Touched:connect(function(hit)
  357. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  358. if hit.Parent.Name ~= player.Name then
  359. if hit.Parent.Humanoid.MaxHealth > 100 then
  360. hit.Parent.Humanoid.MaxHealth = 100
  361. end
  362. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(5,15)
  363. hit.Parent.Humanoid.Sit = true
  364. for i = 1, (math.random(1,3)) do
  365. wait()
  366. local bleed = Instance.new("Part")
  367. bleed.formFactor = "Symmetric"
  368. bleed.Size = Vector3.new(1,1,1)
  369. bleed.BrickColor = BrickColor.new(1004)
  370. bleed.TopSurface = 0
  371. bleed.BottomSurface = 0
  372. bleed.Reflectance = .1
  373. bleed.Transparency = 0
  374. bleed.Parent = Workspace
  375. bleed.Position = rblade.Position
  376. local bleedm = Instance.new("SpecialMesh")
  377. bleedm.MeshType = "Sphere"
  378. bleedm.Scale = Vector3.new(.5,.5,.5)
  379. bleedm.Parent = bleed
  380. game:GetService("Debris"):AddItem(bleed, 5)
  381. end
  382. end
  383. end
  384. end)
  385.  
  386. end
  387. -- animations--
  388. right = rns
  389. staff = rblade
  390. left = lns
  391. up = "right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))wait()right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))wait()right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))wait()right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))"
  392. down = "right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))wait()right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))wait()right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))"
  393. -- end of staff
  394. mouse.KeyDown:connect(function(key)
  395. -- moves
  396. if key == "z" then
  397. if rbw.Part0 == rarm then
  398. rbw.Part0 = larm
  399. end
  400. end
  401. if key == "x" then
  402. if rbw.Part0 == larm then
  403. rbw.Part0 = rarm
  404. end
  405. end
  406. if key == "e" then
  407. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  408. wait()
  409. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
  410. wait()
  411. right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
  412. wait()
  413. right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
  414. wait()
  415. right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
  416. wait()
  417. right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
  418. wait(.5)
  419. right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
  420. wait()
  421. right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
  422. wait()
  423. right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
  424. wait()
  425. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
  426. wait()
  427. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  428. elseif key == "q" then
  429. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  430. wait()
  431. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*.05))
  432. wait()
  433. left.C1 = CFrame.new(1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*.1))
  434. wait()
  435. left.C1 = CFrame.new(1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*.15))
  436. wait()
  437. left.C1 = CFrame.new(1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*.2))
  438. wait()
  439. left.C1 = CFrame.new(1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*.25))
  440. wait(.5)
  441. left.C1 = CFrame.new(1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*.2))
  442. wait()
  443. left.C1 = CFrame.new(1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*.15))
  444. wait()
  445. left.C1 = CFrame.new(1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*.1))
  446. wait()
  447. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*.05))
  448. wait()
  449. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  450. elseif key == "r" then
  451. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  452. wait()
  453. left.C1 = CFrame.new(1.42,0.62,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.3))
  454. wait()
  455. left.C1 = CFrame.new(1.29,0.84,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.35))
  456. wait()
  457. left.C1 = CFrame.new(1.16,1.06,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.4))
  458. wait()
  459. left.C1 = CFrame.new(1.03,1.28,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.45))
  460. wait()
  461. left.C1 = CFrame.new(0.9,1.5,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.5))
  462. wait(.2)
  463. left.C1 = CFrame.new(0.9,1.5,-0.15)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*.5))
  464. wait()
  465. left.C1 = CFrame.new(0.9,1.5,-0.30)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*.5))
  466. wait()
  467. left.C1 = CFrame.new(0.9,1.5,-0.45)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*.5))
  468. wait()
  469. left.C1 = CFrame.new(0.9,1.5,-0.60)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*.5))
  470. wait()
  471. left.C1 = CFrame.new(0.9,1.5,-0.75)*CFrame.Angles((math.pi*-.75),(math.pi*0),(math.pi*.5))
  472. wait(.1)
  473. left.C1 = CFrame.new(1.03,1.28,0)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*.45))
  474. wait()
  475. left.C1 = CFrame.new(1.16,1.06,0)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*.4))
  476. wait()
  477. left.C1 = CFrame.new(1.29,0.84,0)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*.35))
  478. wait()
  479. left.C1 = CFrame.new(1.42,0.62,0)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*.3))
  480. wait()
  481. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  482. elseif key == "t" then
  483. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  484. wait()
  485. right.C1 = CFrame.new(-1.42,0.62,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.3))
  486. wait()
  487. right.C1 = CFrame.new(-1.29,0.84,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.35))
  488. wait()
  489. right.C1 = CFrame.new(-1.16,1.06,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.4))
  490. wait()
  491. right.C1 = CFrame.new(-1.03,1.28,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.45))
  492. wait()
  493. right.C1 = CFrame.new(-0.9,1.5,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.5))
  494. wait(.2)
  495. right.C1 = CFrame.new(-0.9,1.5,-0.15)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*-.5))
  496. wait()
  497. right.C1 = CFrame.new(-0.9,1.5,-0.30)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*-.5))
  498. wait()
  499. right.C1 = CFrame.new(-0.9,1.5,-0.45)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*-.5))
  500. wait()
  501. right.C1 = CFrame.new(-0.9,1.5,-0.60)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*-.5))
  502. wait()
  503. right.C1 = CFrame.new(-0.9,1.5,-0.75)*CFrame.Angles((math.pi*-.75),(math.pi*0),(math.pi*-.5))
  504. wait(.1)
  505. right.C1 = CFrame.new(-1.03,1.28,0)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*-.45))
  506. wait()
  507. right.C1 = CFrame.new(-1.16,1.06,0)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*-.4))
  508. wait()
  509. right.C1 = CFrame.new(-1.29,0.84,0)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*-.35))
  510. wait()
  511. right.C1 = CFrame.new(-1.42,0.62,0)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*-.3))
  512. wait()
  513. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  514. end
  515. -- spells-------------------------------------------------------------------------------------
  516. if key == "f" then
  517. loadstring(up)()
  518. local wall = Instance.new("Part")
  519. wall.Parent = Workspace
  520. wall.Size = Vector3.new(10,1,10)
  521. wall.formFactor = "Symmetric"
  522. wall.CFrame = player.Torso.CFrame *CFrame.new(0,-3.42,0)
  523. wall.TopSurface = 0
  524. wall.BottomSurface = 0
  525. wall.Anchored = true
  526. wall.BrickColor = BrickColor.new(1006)
  527. wall.Material = "Ice"
  528. game:GetService("Debris"):AddItem(wall, 15)
  529. while wall:IsDescendantOf(Workspace) do
  530. wait()
  531. wall.CFrame = player.Torso.CFrame*CFrame.new(0,-3.42,0)
  532. end
  533. wait(.5)
  534. loadstring(down)()
  535. end
  536. if key == "g" then
  537. if mouse.Target then
  538. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  539. local tar = mouse.Target
  540. loadstring(up)()
  541. local spark = Instance.new("Explosion")
  542. spark.BlastRadius = 4
  543. spark.BlastPressure = 0
  544. spark.Parent = Workspace
  545. spark.Position = tip2.Position
  546. local ptar = tar.Parent
  547. local mis = Instance.new("Part")
  548. mis.formFactor = "Symmetric"
  549. mis.Shape = "Ball"
  550. mis.BrickColor = BrickColor.new(1006)
  551. mis.Transparency = .5
  552. mis.Size = Vector3.new(1,1,1)
  553. mis.Parent = Workspace
  554. mis.CFrame = staff.CFrame * CFrame.new(0,0,-15)
  555. local misv = Instance.new("BodyVelocity")
  556. misv.Parent = mis
  557. misv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  558. misv.velocity = mis.CFrame.lookVector * 50
  559. local misg = Instance.new("BodyGyro")
  560. misg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  561. misg.Parent = mis
  562. misg.cframe = CFrame.new(tar.Position, mis.Position)
  563. mis.Touched:connect(function(hit)
  564. if hit.Name == tar.Name then
  565. local ex = Instance.new("Explosion")
  566. ex.Parent = Workspace
  567. ex.Position = mis.Position
  568. mis:remove()
  569. end
  570. end)
  571. wait(.5)
  572. loadstring(down)()
  573. while mis.Parent == Workspace and tar:IsDescendantOf(Workspace) do
  574. wait()
  575. misg.cframe = CFrame.new(tar.Position, mis.Position)
  576. local fire = Instance.new("Explosion")
  577. fire.Parent = Workspace
  578. fire.Position = mis.Position
  579. fire.BlastRadius = 2
  580. misv.velocity = mis.CFrame.lookVector * -18
  581. end
  582. mis:remove()
  583. end
  584. end
  585. end
  586. if key == "b" then
  587. loadstring(up)()
  588. for i = 1,100 do
  589. wait()
  590. local p = Instance.new("Part")
  591. p.BrickColor = BrickColor.new(1006)
  592. p.Name ="check"
  593. p.Parent = Workspace
  594. p.CanCollide = false
  595. p.Size = Vector3.new(1,3,1)
  596. p.CFrame = player.Torso.CFrame + Vector3.new(math.random(-5,5),math.random(-2,4),math.random(-5,5))
  597. p.formFactor = "Symmetric"
  598. p.TopSurface = 0
  599. p.BottomSurface = 0
  600. p.Transparency = .5
  601. local pm = Instance.new("SpecialMesh")
  602. pm.Parent = p
  603. pm.MeshType = "Sphere"
  604. pm.Scale = Vector3.new((.2+(.05*i)),(.2+(.05*i)),(.2+(.05*i)))
  605. local pbv = Instance.new("BodyVelocity")
  606. pbv.Parent = p
  607. pbv.velocity = Vector3.new(0,10,0)
  608. game:GetService("Debris"):AddItem(p, .2)
  609. player.Humanoid.Health = player.Humanoid.Health +2
  610. end
  611. player.Torso.CFrame = mouse.Hit + Vector3.new(0,4,0)
  612. wait(.5)
  613. loadstring(down)()
  614. end
  615. if key == "v" then
  616. local tar = mouse.Target
  617. if tar ~= nil then
  618. if (tip6a.Position - tar.Position).magnitude < 100 then
  619. loadstring(up)()
  620. local shot = Instance.new("Part")
  621. shot.Parent = Workspace
  622. shot.BrickColor = BrickColor.new("Cyan")
  623. shot.formFactor = "Symmetric"
  624. shot.Size = Vector3.new(1,1,1)
  625. shot.Anchored = true
  626. local shotm = Instance.new("BlockMesh")
  627. shotm.Scale = Vector3.new(.2,.2,(tip6a.Position - mouse.Hit.p).magnitude)
  628. shot.CFrame = CFrame.new(((tip6a.Position + mouse.Hit.p)/2),mouse.Hit.p)
  629. shotm.Parent = shot
  630. if tar.Parent:findFirstChild("Humanoid") ~= nil then
  631. local ice = Instance.new("Part")
  632. ice.Position = tar.Parent.Torso.Position
  633. ice.Anchored = true
  634. tar.Parent.Torso.Anchored = true
  635. ice.BrickColor = BrickColor.new("Cyan")
  636. ice.Size = Vector3.new(4,6,4)
  637. ice.Reflectance = .2
  638. ice.TopSurface = 0
  639. ice.BottomSurface = 0
  640. ice.Transparency = .5
  641. ice.Parent = tar.Parent
  642. coroutine.resume(coroutine.create(function() kill(tar) end))
  643. end
  644. wait(.1)
  645. shot:remove()
  646. end
  647. wait(.5)
  648. loadstring(down)()
  649. end
  650. end
  651. if key == "c" then
  652. local tar = mouse.Target
  653. if tar ~= nil then
  654. if (tip6a.Position - tar.Position).magnitude < 100 then
  655. loadstring(up)()
  656. right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
  657. local shot = Instance.new("Part")
  658. shot.Parent = Workspace
  659. shot.BrickColor = BrickColor.new("Royal purple")
  660. shot.formFactor = "Symmetric"
  661. shot.Size = Vector3.new(1,1,1)
  662. shot.Anchored = true
  663. local shotm = Instance.new("BlockMesh")
  664. shotm.Scale = Vector3.new(.2,.2,(tip6a.Position - mouse.Hit.p).magnitude)
  665. shot.CFrame = CFrame.new(((tip6a.Position + mouse.Hit.p)/2),mouse.Hit.p)
  666. shotm.Parent = shot
  667. if tar.className == "Part" then
  668. local ice = Instance.new("Part")
  669. ice.CFrame = tar.CFrame
  670. ice.Size = tar.Size + Vector3.new(1,1,1)
  671. ice.Anchored = true
  672. tar.Anchored = true
  673. ice.BrickColor = BrickColor.new("Cyan")
  674. ice.Reflectance = .2
  675. ice.TopSurface = 0
  676. ice.BottomSurface = 0
  677. ice.Transparency = .5
  678. ice.Parent = tar
  679. ice.Friction = 0
  680. game:GetService("Debris"):AddItem(ice, 10)
  681. wait(.1)
  682. shot:remove()
  683. wait(.5)
  684. loadstring(down)()
  685. end
  686. end
  687. end
  688. end
  689. if key == "h" then
  690. loadstring(up)()
  691. local cf = CFrame.new(tip2.Position, mouse.Hit.p)
  692. local v = cf.lookVector
  693. local dx = (math.random() - .5) * .02
  694. local dy = (math.random() - .5) * .02
  695. local dz = (math.random() - .5) * .02
  696. parts = {}
  697. local f = coroutine.create(function() fire(Vector3.new(v.x + dx, v.y + dy, v.z + dz)) end)
  698. coroutine.resume(f)
  699. wait(.5)
  700. loadstring(down)()
  701. end
  702. if key == "y" then
  703. loadstring(up)()
  704. for i = 2,101 do
  705. wait()
  706. local boulder = Instance.new("Part")
  707. boulder.TopSurface = 0
  708. boulder.BottomSurface = 0
  709. boulder.Anchored = true
  710. boulder.BrickColor = BrickColor.new("Dark stone grey")
  711. boulder.Size = Vector3.new((i+math.random(-1,1)),(i+math.random(-1,1)),2)
  712. boulder.CFrame = tip.CFrame * CFrame.new(0,0,-2*i)
  713. boulder.Velocity = boulder.CFrame.lookVector * 500
  714. boulder.Material = "Slate"
  715. boulder.Parent = Workspace
  716. boulder.Touched:connect(function(hit)
  717. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  718. hit.Parent.humanoid.Sit = true
  719. end
  720. end)
  721. game:GetService("Debris"):AddItem(boulder, .8)
  722. end
  723. loadstring(down)()
  724. end
  725. if key == "n" then
  726. local tar = mouse.Target
  727. if tar~= nil then
  728. if tar.Parent:findFirstChild("Humanoid") ~= nil then
  729. if tar.Parent:findFirstChild("Torso") ~= nil then
  730. loadstring(up)()
  731. for i = 1,100 do
  732. wait()
  733. local p = Instance.new("Part")
  734. p.BrickColor = BrickColor.new(1006)
  735. p.Name ="check"
  736. p.Parent = Workspace
  737. p.CanCollide = false
  738. p.Size = Vector3.new(1,3,1)
  739. p.CFrame = tar.Parent.Torso.CFrame + Vector3.new(math.random(-5,5),math.random(-2,4),math.random(-5,5))
  740. p.formFactor = "Symmetric"
  741. p.TopSurface = 0
  742. p.BottomSurface = 0
  743. p.Transparency = .5
  744. local pm = Instance.new("SpecialMesh")
  745. pm.Parent = p
  746. pm.MeshType = "Sphere"
  747. pm.Scale = Vector3.new((.2+(.05*i)),(.2+(.05*i)),(.2+(.05*i)))
  748. local pbv = Instance.new("BodyVelocity")
  749. pbv.Parent = p
  750. pbv.velocity = Vector3.new(0,10,0)
  751. game:GetService("Debris"):AddItem(p, .2)
  752. tar.Parent.Humanoid.Health = tar.Parent.Humanoid.Health +2
  753. end
  754. tar.Parent.Torso.CFrame = mouse.Hit + Vector3.new(0,4,0)
  755. wait(.5)
  756. loadstring(down)()
  757. end
  758. end
  759. end
  760. end
  761. if key == "u" then
  762. loadstring(up)()
  763. local start = Instance.new("Part")
  764. start.Parent = Workspace
  765. start.Position = mouse.Hit.p + Vector3.new(0,18,0)
  766. start.Anchored = true
  767. start.Size = Vector3.new(1,1,1)
  768. start.Transparency = 1
  769. for i = 1,36 do
  770. start.CFrame = start.CFrame * CFrame.Angles(math.rad(0),math.rad(5),math.rad(0))
  771. local wall1 = Instance.new("Part")
  772. wall1.Parent = Workspace
  773. wall1.BrickColor = BrickColor.new("Really black")
  774. wall1.Size = Vector3.new(1,10,1)
  775. wall1.Anchored = true
  776. wall1.TopSurface = 0
  777. wall1.CFrame = start.CFrame * CFrame.new(10,-15,0)
  778. local wall2 = Instance.new("Part")
  779. wall2.Parent = Workspace
  780. wall2.BrickColor = BrickColor.new("Really black")
  781. wall2.Size = Vector3.new(1,10,1)
  782. wall2.Anchored = true
  783. wall2.TopSurface = 0
  784. wall2.CFrame = start.CFrame * CFrame.new(10,-15,0)
  785. local wall1a = Instance.new("Part")
  786. wall1a.Parent = Workspace
  787. wall1a.BrickColor = BrickColor.new("Really black")
  788. wall1a.Size = Vector3.new(1,10,1)
  789. wall1a.Anchored = true
  790. wall1a.TopSurface = 0
  791. wall1a.CFrame = start.CFrame * CFrame.new(-10,-15,0)
  792. local wall2a = Instance.new("Part")
  793. wall2a.Parent = Workspace
  794. wall2a.BrickColor = BrickColor.new("Really black")
  795. wall2a.Size = Vector3.new(1,0,1)
  796. wall2a.Anchored = true
  797. wall2a.TopSurface = 0
  798. wall2a.CFrame = start.CFrame * CFrame.new(-10,-15,0)
  799. local roof = Instance.new("Part")
  800. roof.Parent = Workspace
  801. roof.Size = Vector3.new(0,1,1)
  802. roof.BrickColor = BrickColor.new("Really black")
  803. roof.Anchored = true
  804. roof.CFrame = start.CFrame * CFrame.new(0,-10,0)
  805. roof.TopSurface = 0
  806. local roof2 = Instance.new("Part")
  807. roof2.Parent = Workspace
  808. roof2.Size = Vector3.new(1,1,20)
  809. roof2.BrickColor = BrickColor.new("Really black")
  810. roof2.Anchored = true
  811. roof2.CFrame = start.CFrame * CFrame.new(0,-10,0)
  812. roof2.TopSurface = 0
  813. local roofa = Instance.new("Part")
  814. roofa.Parent = Workspace
  815. roofa.Size = Vector3.new(20,1,1)
  816. roofa.BrickColor = BrickColor.new("Really black")
  817. roofa.Anchored = true
  818. roofa.CFrame = start.CFrame * CFrame.new(0,-20,0)
  819. roofa.TopSurface = 0
  820. local roof2a = Instance.new("Part")
  821. roof2a.Parent = Workspace
  822. roof2a.Size = Vector3.new(1,1,20)
  823. roof2a.BrickColor = BrickColor.new("Really black")
  824. roof2a.Anchored = true
  825. roof2a.CFrame = start.CFrame * CFrame.new(0,-20,0)
  826. roof2a.TopSurface = 0
  827. game:GetService("Debris"):AddItem(roof, 15)
  828. game:GetService("Debris"):AddItem(wall1, 15)
  829. game:GetService("Debris"):AddItem(wall2, 15)
  830. game:GetService("Debris"):AddItem(roof2, 15)
  831. game:GetService("Debris"):AddItem(wall1a, 15)
  832. game:GetService("Debris"):AddItem(wall2a, 15)
  833. game:GetService("Debris"):AddItem(roofa, 15)
  834. game:GetService("Debris"):AddItem(roof2a, 15)
  835. wait()
  836. end
  837. start:remove()
  838. wait(.5)
  839. loadstring(down)()
  840. end
  841. if key == "m" then
  842. local tar = mouse.Target
  843. if tar.Parent:findFirstChild("Humanoid") ~= nil then
  844. if tar.Parent.Name == "Minion" then
  845. loadstring(up)()
  846. while tar.Parent.Humanoid.Health >= 1 do
  847. wait()
  848. if player.Humanoid.Health == 0 then
  849. tar.Parent.Humanoid:TakeDamage(1000)
  850. else
  851. tar.Parent.Torso.move.position = mouse.Hit.p
  852. end
  853. end
  854. loadstring(down)()
  855. end
  856. end
  857. end
  858. if key == "j" then
  859. local tar = mouse.Target
  860. if tar.Parent:findFirstChild("Humanoid") ~= nil then
  861. tar.Parent.Humanoid.Jump = true
  862. end
  863. elseif key == "k" then
  864. local tar = mouse.Target
  865. if tar.Parent:findFirstChild("Humanoid") ~= nil then
  866. tar.Parent.Humanoid.Sit = true
  867. end
  868. elseif key == "l" then
  869. local tar = mouse.Target
  870. if tar.Parent:findFirstChild("Humanoid") ~= nil then
  871. tar.Parent.Humanoid.PlatformStand = true
  872. end
  873. elseif key == "p" then
  874. local min = Instance.new("Model")
  875. min.Name = "Minion"
  876. min.Parent = Workspace
  877. local skel = Instance.new("Humanoid")
  878. skel.Parent = min
  879. skel.WalkSpeed = 16
  880. skel.MaxHealth = 100
  881. skel.Health = 100
  882. local thing = Instance.new("Part")
  883. thing.Name = "Head"
  884. thing.formFactor = "Symmetric"
  885. thing.TopSurface = 0
  886. thing.BottomSurface = 0
  887. thing.BrickColor = BrickColor.new(1003)
  888. thing.Transparency = .3
  889. thing.Size = Vector3.new(4,4,4)
  890. thing.Parent = min
  891. thing.Position = player.Torso.Position + Vector3.new(0,5,0)
  892. thing.Shape = "Ball"
  893. local thing2 = Instance.new("Part")
  894. thing2.Name = "Torso"
  895. thing2.formFactor = "Symmetric"
  896. thing2.TopSurface = 0
  897. thing2.BottomSurface = 0
  898. thing2.BrickColor = BrickColor.new(1004)
  899. thing2.Size = Vector3.new(1,1,1)
  900. thing2.Parent = min
  901. thing2.Position = player.Torso.Position + Vector3.new(0,5,0)
  902. thing2.Shape = "Ball"
  903. local live = Instance.new("Weld")
  904. live.Parent = thing2
  905. live.Part0 = thing2
  906. live.Part1 = thing
  907. live.Name = "Neck"
  908. local move = Instance.new("BodyPosition")
  909. move.Parent = thing2
  910. move.position = player.Torso.Position
  911. move.maxForce = Vector3.new(100,0,100)
  912. move.Name = "move"
  913. thing.Touched:connect(function(hit)
  914. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  915. if hit.Parent.Name ~= player.Name then
  916. if hit.Parent.Name ~= "Minion" then
  917. if hit.Parent.Humanoid.MaxHealth > 100 then
  918. hit.Parent.Humanoid.MaxHealth = 100
  919. end
  920. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(5,7)
  921. hit.Parent.Humanoid.Sit = true
  922. for i = 1, (math.random(1,3)) do
  923. wait()
  924. local bleed = Instance.new("Part")
  925. bleed.formFactor = "Symmetric"
  926. bleed.Size = Vector3.new(1,1,1)
  927. bleed.BrickColor = BrickColor.new("Bright red")
  928. bleed.TopSurface = 0
  929. bleed.BottomSurface = 0
  930. bleed.Reflectance = .1
  931. bleed.Transparency = .4
  932. bleed.Parent = Workspace
  933. bleed.Position = thing.Position
  934. local bleedm = Instance.new("SpecialMesh")
  935. bleedm.MeshType = "Sphere"
  936. bleedm.Scale = Vector3.new(.2,.2,.2)
  937. bleedm.Parent = bleed
  938. game:GetService("Debris"):AddItem(bleed, 5)
  939. end
  940. end
  941. end
  942. end
  943. end)
  944. coroutine.resume(coroutine.create(function() clean(min,thing2) end))
  945. end
  946. --end of keys
  947. end)
  948. --end of script
  949. end)
  950.  
  951. bin.Deselected:connect(function()
  952. staff:remove()
  953. rs.Part1 = rarm
  954. ls.Part1 = larm
  955. right:remove()
  956. left:remove()
  957. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement