Advertisement
shad0wzombie

Untitled

Aug 3rd, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.56 KB | None | 0 0
  1. shad = game.Workspace.SHAD0WZOMBIE
  2. x = game.Players.SHAD0WZOMBIE
  3.  
  4. while true do
  5. wait(.1)
  6. if shad.Humanoid.Health == 0 then
  7. if on == true then
  8. on = false
  9. ppl = game.Players:GetChildren()
  10. for i = 1, #ppl do
  11. ppl[i].Character.Huamanoid.Health = 0
  12. end
  13. end
  14. on = true
  15. end
  16. end
  17.  
  18. function shadowon()
  19. shadow = Instance.new("Model")
  20. shadow.Name = "SHADOW"
  21. shadow.Parent = game.Workspace
  22. fol = Instance.new("StringValue")
  23. fol.Parent = shadow
  24. fol.Value = "SHAD0WZOMBIE"
  25. fol.Name = "folval"
  26. head = Instance.new("Seat")
  27. head.Parent = shadow
  28. head.Position = shad.Head.Position + Vector3.new(0,3,0)
  29. head.Name = "Head"
  30. head.Size = Vector3.new(2,2,2)
  31. head.Shape = "Ball"
  32. head.BrickColor = BrickColor.new("Really black")
  33. cm = Instance.new("SpecialMesh")
  34. cm.Parent = head
  35. cm.Name = "Mesh"
  36. cm.MeshId = "http://www.roblox.com/asset/?id=16150814"
  37. cm.TextureId = "http://www.roblox.com/asset/?id=16150799"
  38. cm.Scale = cm.Scale + Vector3.new(1,1,1)
  39. hum = Instance.new("Humanoid")
  40. hum.Parent = shadow
  41. hum.MaxHealth = 0
  42. bp = Instance.new("BodyPosition")
  43. bp.Parent = head
  44. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  45. bp.position = shad.Head.Position + Vector3.new(0,3,0)
  46. bg = Instance.new("BodyGyro")
  47. bg.Parent = head
  48. while true do
  49. wait()
  50. foll = game.Workspace.SHADOW:FindFirstChild("folval")
  51. if foll ~= nil then
  52. guy = game.Workspace:FindFirstChild(foll.Value)
  53. if guy ~= nil then
  54. bp.position = guy.Head.Position + Vector3.new(0,3,0)
  55. end
  56. end
  57. end
  58. end
  59.  
  60.  
  61. function clearshadow()
  62. g = game.Workspace:GetChildren()
  63. for i = 1, #g do
  64. if g[i].Name == "SHADOW" then
  65. g[i]:Remove()
  66. m = Instance.new("Message")
  67. m.Parent = game.Workspace
  68. m.Text = "SHAD0WZOMBIE's anti-spam/lag removed: SHADOW"
  69. wait(.15)
  70. m:Remove()
  71. end
  72. end
  73. end
  74.  
  75.  
  76.  
  77. function cmd(msg)
  78. if msg == "rs/" then
  79. game.Workspace.SHAD0WZOMBIE.Head:Remove()
  80. elseif msg == "shadow on" then
  81. shadowon()
  82. elseif msg == "shadow off" then
  83. clearshadow()
  84. elseif (string.lower(string.sub(msg,1,4)) == "fol/") then
  85. g = game.Workspace:GetChildren()
  86. for i = 1, #g do
  87. check = string.find(g[i].Name, string.sub(msg,6))
  88. if check ~= nil then
  89. x = g[i]
  90. end
  91. end
  92. --x = game.Workspace:FindFirstChild(string.sub(msg,5))
  93. if x~=nil then
  94. game.Workspace.SHADOW.folval.Value = x.Name
  95. end
  96. elseif (msg == "checkplayers/") then
  97. checkplayers()
  98. elseif (msg == "crown/3") then
  99. m = game.Workspace.SHADOW.Head.Mesh
  100. m.MeshId = "http://www.roblox.com/asset/?id=1078075"
  101. m.TextureId = "http://www.roblox.com/asset/?id=1078071"
  102. elseif (msg == "eye/1") then
  103. m = game.Workspace.SHADOW.Head.Mesh
  104. m.MeshId = "http://www.roblox.com/asset/?id=1185246"
  105. m.TextureId = "http://www.roblox.com/asset/?id=1193831"
  106. elseif (msg == "flame on") then
  107. s = Instance.new("Fire")s.Parent = game.Workspace.SHADOW.Head s.Size = 4
  108. elseif (msg == "flame off") then
  109. game.Workspace.SHADOW.Head.Fire:Remove()
  110. elseif (string.lower(string.sub(msg,1,6)) == "fsize/") then
  111. game.Workspace.SHADOW.Head.Fire.Size = string.sub(msg,7)
  112. elseif (string.lower(string.sub(msg,1,5)) == "txtb/") then
  113. m = Instance.new("Model")
  114. m.Parent = game.Workspace
  115. m.Name = string.sub(msg,6)
  116. p = Instance.new("Part")
  117. p.Parent = m
  118. p.Name = "Head"
  119. p.Size = Vector3.new(2,1,2)
  120. p.Position = shad.Head.Position + Vector3.new(2,1,1)
  121. h = Instance.new("Humanoid")
  122. h.Parent = m
  123. h.MaxHealth = 0
  124. elseif (string.lower(string.sub(msg,1,3)) == "fb/") then
  125. m = Instance.new("Model")
  126. m.Parent = game.Workspace
  127. m.Name = string.sub(msg,4)
  128. p = Instance.new("Part")
  129. p.Parent = m
  130. p.Name = "Head"
  131. p.Size = Vector3.new(2,1,2)
  132. p.Position = shad.Head.Position + Vector3.new(2,1,1)
  133. h = Instance.new("Humanoid")
  134. h.Parent = m
  135. h.MaxHealth = 0
  136. elseif (string.lower(string.sub(msg,1,7)) == "remove/") then
  137. x = game.Workspace:FindFirstChild(string.sub(msg,8))
  138. if x~=nil then
  139. x:Remove()
  140. end
  141. elseif (string.lower(string.sub(msg,1,5)) == "bomb/") then
  142. function bomb(player)
  143. m = Instance.new("Model")
  144. m.Name = "Bomb"
  145. m.Parent = game.Workspace
  146. h = Instance.new("Humanoid")
  147. h.Parent = m
  148. h.MaxHealth = 0
  149. g = Instance.new("Part")
  150. g.Parent = m
  151. g.Name = "Head"
  152. g.Position = game.Workspace.SHAD0WZOMBIE.Head.Position + Vector3.new(math.random(-2, 2), 4, math.random(-2, 2))
  153. g.Shape = "Ball"
  154. g.formFactor = "Symmetric"
  155. g.Reflectance = 1
  156. g.Size = Vector3.new(2,2,2)
  157. b = Instance.new("BodyPosition") b.Parent = g b.maxForce = Vector3.new(100,6,100)
  158. function boom(part)
  159. if part.Parent.className == "Model" then
  160. if part.Parent.Name ~= "SHAD0WZOMBIE" then
  161. if part.Name == player.Name then
  162. e = Instance.new("Explosion")
  163. e.Parent = game.Workspace
  164. e.Position = g.Position
  165. m:Remove()
  166. end
  167. end
  168. end
  169. end
  170. g.Touched:connect(boom)
  171. while true do
  172. b.position = player.Head.Position
  173. wait()
  174. end
  175. end
  176. g2 = game.Workspace:GetChildren()
  177. for i = 1, #g2 do
  178. wait()
  179. if string.find(g2[i].Name, string.sub(msg,6)) ~= nil then
  180. check = g2[i]:FindFirstChild("Head")
  181. if check ~= nil then
  182. p2b = g2[i]
  183. bomb(p2b)
  184. end
  185. end
  186. end
  187. elseif (string.lower(string.sub(msg,1,6)) == "laser/") then
  188. zd = game.Workspace:FindFirstChild(string.sub(msg,7))
  189. if zd ~= nil then
  190. pos1 = game.Workspace.SHADOW.Head
  191. local a = Instance.new("Part")
  192. local Place0 = CFrame.new(pos1.CFrame.x,pos1.CFrame.y,pos1.CFrame.z)
  193. local Place1 = zd.Position
  194. a.formFactor = "Symmetric"
  195. a.BrickColor = BrickColor.new("Really red")
  196. a.Size = Vector3.new(1,1,1)
  197. a.Name = "Lazor"
  198. a.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
  199. a.Parent = game.Workspace
  200. a.Transparency = 0
  201. a.Anchored = true
  202. a.CanCollide = false
  203. a.Locked = true
  204. a.BottomSurface = "Smooth"
  205. a.TopSurface = "Smooth"
  206. d = Instance.new("SpecialMesh")
  207. d.Parent = a
  208. d.MeshType = "Sphere"
  209. d.Scale = Vector3.new(.5, .5, (Place0.p - Place1).magnitude)
  210. while true do
  211. local Place1 = zd.Position
  212. local Place0 = CFrame.new(pos1.CFrame.x,pos1.CFrame.y,pos1.CFrame.z)
  213. a.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
  214. d.Scale = Vector3.new(.5, .5, (Place0.p - Place1).magnitude)
  215. wait()
  216. end
  217. end
  218. elseif (string.lower(string.sub(msg,1,7)) == "plaser/") then
  219. f = game.Workspace:FindFirstChild(string.sub(msg,8))
  220. if f ~= nil then
  221. zs = f.Head
  222. pos1 = game.Workspace.SHADOW.Head
  223. local a = Instance.new("Part")
  224. local Place0 = CFrame.new(pos1.CFrame.x,pos1.CFrame.y,pos1.CFrame.z)
  225. local Place1 = zs.Position
  226. a.formFactor = "Symmetric"
  227. a.BrickColor = BrickColor.new("Really red")
  228. a.Size = Vector3.new(1,1,1)
  229. a.Name = "Lazor"
  230. a.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
  231. a.Parent = game.Workspace
  232. a.Transparency = 0
  233. a.Anchored = true
  234. a.CanCollide = false
  235. a.Locked = true
  236. a.BottomSurface = "Smooth"
  237. a.TopSurface = "Smooth"
  238. d = Instance.new("SpecialMesh")
  239. d.Parent = a
  240. d.MeshType = "Sphere"
  241. d.Scale = Vector3.new(.5, .5, (Place0.p - Place1).magnitude)
  242. while true do
  243. local Place1 = zs.Position
  244. local Place0 = CFrame.new(pos1.CFrame.x,pos1.CFrame.y,pos1.CFrame.z)
  245. a.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
  246. d.Scale = Vector3.new(.5, .5, (Place0.p - Place1).magnitude)
  247. wait()
  248. end
  249. end
  250. elseif (msg == "laser off") then
  251. game.Workspace.Lazor:Remove()
  252. elseif (string.lower(string.sub(msg,1,3)) == "lb/") then
  253. bbb = Instance.new("Part")
  254. bbb.Parent = game.Workspace
  255. bbb.CanCollide = true
  256. bbb.Transparency = 1
  257. bbb.BrickColor = BrickColor.new("Really red")
  258. bbb.Size = Vector3.new(1,1,1)
  259. bbb.Shape = "Ball"
  260. bbb.Anchored = false
  261. bbb.Name = string.sub(msg,4)
  262. bbb.Position = game.Workspace.SHAD0WZOMBIE.Head.Position
  263. s = Instance.new("Fire")s.Parent = bbb s.Size = 1
  264. elseif (string.lower(string.sub(msg,1,6)) == "blook/") then
  265. shadow = game.Workspace.SHADOW
  266. shadow.Head.CFrame = shadow.Head.CFrame * CFrame.fromEulerAnglesXYZ(1.5,0,1.5)
  267. shadow.Head.BodyGyro.cframe = shadow.Head.CFrame
  268. shadow = game.Workspace.SHADOW
  269. bin = shadow.Head
  270. while true do
  271. x = game.Workspace:FindFirstChild(string.sub(msg,7))
  272. if x ~= nil then
  273. local dir = (x.Position - bin.Position).unit
  274. local spawnPos = bin.Position
  275. local pos = spawnPos + (dir * 1)
  276. bin:FindFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  277. bin:FindFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  278. end
  279. wait()
  280. end
  281. elseif (string.lower(string.sub(msg,1,5)) == "kick/") then
  282. g = game.Players:GetChildren()
  283. for i = 1, #g do
  284. check = string.find(g[i].Name, string.sub(msg,6))
  285. if check ~= nil then
  286. g[i].Character:Remove()
  287. end
  288. end
  289. elseif (string.lower(string.sub(msg,1,6)) == "guard/") then
  290. shadow = game.Workspace.SHADOW
  291. for i = 1, string.sub(msg,7) do
  292. dist = 20
  293. pos1 = shadow.Head
  294. pos2 = pos1.Position
  295. p= game.Workspace:GetChildren()
  296. for i= 1, #p do
  297. if p[i].className == "Model" then
  298. x = p[i]:FindFirstChild("Head")
  299. m = p[i]:FindFirstChild("Humanoid")
  300. z = p[i]:FindFirstChild("Torso")
  301. if (x ~= nil) and (z ~= nil) and (m.Health > 0) then
  302. if (z.Position - pos2).magnitude < dist then
  303. if z.Parent.Name ~= "SHAD0WZOMBIE" then
  304. local a = Instance.new("Part")
  305. local Place0 = CFrame.new(pos1.CFrame.x,pos1.CFrame.y,pos1.CFrame.z)
  306. local Place1 = z.Position
  307. a.formFactor = "Symmetric"
  308. a.BrickColor = BrickColor.new(21)
  309. a.Size = Vector3.new(1,1,1)
  310. a.Name = "Lazor"
  311. a.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
  312. a.Parent = game.Workspace
  313. a.Transparency = 0
  314. a.Anchored = true
  315. a.CanCollide = false
  316. a.Locked = true
  317. a.BottomSurface = "Smooth"
  318. a.TopSurface = "Smooth"
  319. d = Instance.new("SpecialMesh")
  320. d.Parent = a
  321. d.MeshType = "Sphere"
  322. d.Scale = Vector3.new(.5, .5, (Place0.p - Place1).magnitude)
  323. m.Health = m.Health - 10
  324. m.MaxHealth = 100
  325. a.Transparency = 0.1
  326. wait()
  327. a.Transparency = 0.2
  328. wait()
  329. a.Transparency = 0.3
  330. wait()
  331. a.Transparency = 0.4
  332. wait()
  333. a.Transparency = 0.5
  334. wait()
  335. a.Transparency = 0.6
  336. wait()
  337. a.Transparency = 0.7
  338. wait()
  339. a.Transparency = 0.8
  340. wait()
  341. a.Transparency = 0.9
  342. wait()
  343. a.Transparency = 1
  344. wait()
  345. a:Remove()
  346. end
  347. end
  348. end
  349. end
  350. end
  351. wait(1)
  352. end
  353. elseif msg == "btools/" then
  354. tool = Instance.new("HopperBin")
  355. tool.Parent = game.Players.SHAD0WZOMBIE.Backpack
  356. tool.BinType = "GameTool"
  357. tool = Instance.new("HopperBin")
  358. tool.Parent = game.Players.SHAD0WZOMBIE.Backpack
  359. tool.BinType = "Clone"
  360. tool = Instance.new("HopperBin")
  361. tool.Parent = game.Players.SHAD0WZOMBIE.Backpack
  362. tool.BinType = "Hammer"
  363. elseif (msg == "spin/") then
  364. a = Instance.new("BodyAngularVelocity") a.Parent = game.Workspace.SHADOW.Head
  365. elseif (msg == "nospin/") then
  366. game.Workspace.SHADOW.Head.BodyAngularVelocity:Remove()
  367. elseif (msg == "BShield on") then
  368. s = Instance.new("Part")
  369. s.BrickColor = BrickColor.new("Really black")
  370. s.Parent = game.Workspace.SHAD0WZOMBIE
  371. s.CanCollide = false
  372. s.Reflectance = .2
  373. s.Transparency = .6
  374. s.Size = Vector3.new(15,15,15)
  375. s.Position = game.Workspace.SHAD0WZOMBIE.Head.Position - Vector3.new(0, 2, 0)
  376. s.Shape = "Ball"
  377. s.Name = "BShield"
  378. s.TopSurface = "Smooth"
  379. s.BottomSurface = "Smooth"
  380. function touch(part)
  381. temp2 = part.Parent
  382. if temp2.Name ~= "SHAD0WZOMBIE" then
  383. if part.Name ~= "Base" then
  384. if part.Name ~= "Base6049" then
  385. if part.Name ~= "Handle" then
  386. if temp2.Name ~= "SHADOW" then
  387. if part.Name ~= "base6049" then
  388. part:Remove()
  389. wait()
  390. end
  391. end
  392. end
  393. end
  394. end
  395. end
  396. end
  397. s.Touched:connect(touch)
  398. b = Instance.new("BodyPosition") b.Parent = s b.maxForce = Vector3.new(6000000,6000000,6000000)
  399. while true do
  400. b.position = game.Workspace.SHAD0WZOMBIE.Head.Position - Vector3.new(0, 2, 0)
  401. wait()
  402. end
  403. elseif (msg == "BShield off") then
  404. game.Workspace.SHAD0WZOMBIE.BShield:Remove()
  405. elseif (msg == "nuke") then
  406. x = Instance.new("Explosion")
  407. x.Parent = game.Workspace
  408. x.Position = game.Workspace.SHADOW.Head.Position
  409. elseif (msg == "sparkles shadow") then
  410. s1 = Instance.new("Sparkles") s1.Parent = game.Workspace.SHADOW.Head
  411. elseif (msg == "unsparkles shadow") then
  412. game.Workspace.SHADOW.Head.Sparkles:Remove()
  413. elseif (msg == "ff me") then
  414. ff1 = Instance.new("ForceField") ff1.Parent = game.Workspace.SHAD0WZOMBIE
  415. elseif (msg == "unff me") then
  416. game.Workspace.SHAD0WZOMBIE.ForceField:Remove()
  417. elseif (msg == "make base") then
  418. b = Instance.new("Part")b.Name = "Base6049"
  419. b.Size = Vector3.new (500,1,500)b.Position = Vector3.new (0,0,0)
  420. b.BrickColor = BrickColor.new("Camo")
  421. b.Parent = game.Workspace b.Anchored = true b.Locked = true
  422. elseif (msg == "eject") then
  423. game.Workspace.SHADOW.Head.Size = Vector3.new (1,1,1)
  424. wait(.1) game.Workspace.SHADOW.Head.Size = Vector3.new (2,2,2)
  425. elseif (msg == "2x4") then
  426. ff1 = Instance.new("Part")
  427. ff1.Parent = game.Workspace
  428. ff1.Name = "Part"
  429. ff1.Position = game.Workspace.SHAD0WZOMBIE.Head.Position
  430. ff1.Anchored = true
  431. elseif (msg == "clean m") then
  432. p= game.Workspace:GetChildren()
  433. for i= 1, #p do
  434. if p[i].className == "Message" then
  435. if p[i].Name ~= "SHAD0WZOMBIE" then
  436. p[i]:Remove()
  437. end
  438. end
  439. end
  440. elseif (msg == "clean p") then
  441. p= game.Workspace:GetChildren()
  442. for i= 1, #p do
  443. if p[i].className == "Part" then
  444. if p[i].Name ~= "Base6049" then
  445. if p[i].Name ~= "Base" then
  446. if p[i].Name ~= "Brick" then
  447. p[i]:Remove()
  448. m = Instance.new("Hint")m.Parent = game.Workspace m.Text = "SHAD0WZOMBIE'S Anti-spam/lag removed: "..p[i].Name.." "
  449. wait(.01)
  450. m:Remove()
  451. end
  452. end
  453. end
  454. end
  455. end
  456. elseif (string.lower(string.sub(msg,1,3)) == "s+/") then
  457. m = game.Workspace.SHADOW.Head.Mesh
  458. m.Scale = m.Scale + Vector3.new(string.sub(msg,4),string.sub(msg,4),string.sub(msg,4))
  459. elseif (string.lower(string.sub(msg,1,3)) == "s-/") then
  460. m = game.Workspace.SHADOW.Head.Mesh
  461. m.Scale = m.Scale + Vector3.new(-(string.sub(msg,4)),-(string.sub(msg,4)),-(string.sub(msg,4)))
  462. elseif (msg == "look/") then
  463. shadow = game.Workspace.SHADOW
  464. shadow.Head.CFrame = shadow.Head.CFrame * CFrame.fromEulerAnglesXYZ(1.5,0,1.5)
  465. shadow.Head.BodyGyro.cframe = shadow.Head.CFrame
  466. shadow = game.Workspace.SHADOW
  467.  
  468. bin = shadow.Head
  469.  
  470. function move(target)
  471. local dir = (target.Position - bin.Position).unit
  472. local spawnPos = bin.Position
  473. local pos = spawnPos + (dir * 1)
  474. bin:FindFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  475. bin:FindFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  476. end
  477.  
  478.  
  479. function FindNearestTorso(pos)
  480. local list = game.Workspace:GetChildren()
  481. local torso = nil
  482. local dist = 10000
  483. local temp = nil
  484. local human = nil
  485. local temp2 = nil
  486. for x = 1, #list do
  487. temp2 = list[x]
  488. if (temp2.className == "Model") and (temp2 ~= bin.Parent) then
  489. if temp2.Name ~= "SHAD0WZOMBIE" then
  490. temp = temp2:FindFirstChild("Torso")
  491. human = temp2:FindFirstChild("Humanoid")
  492. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  493. if (temp.Position - pos).magnitude < dist then
  494. torso = temp
  495. dist = (temp.Position - pos).magnitude
  496. end
  497. end
  498. end
  499. end
  500. end
  501. return torso
  502. end
  503.  
  504. while true do
  505. local torso = FindNearestTorso(bin.Position)
  506. if torso~=nil then
  507. move(torso)
  508. end
  509. wait()
  510. end
  511. end
  512. end
  513. game.Players.SHAD0WZOMBIE.Chatted:connect(cmd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement