Advertisement
shad0wzombie

Untitled

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