Advertisement
iiJosephCats205

fe staff test

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