Advertisement
Sevakot

Untitled

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