Advertisement
lelua99

Dark sand

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