Advertisement
vibrantsinger423

deregr

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