AgentVK

Anti Ghost NOOB

Dec 30th, 2017
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. --Shackluster typed this.--
  2.  
  3. --This script is ment to counter Ghosts--
  4.  
  5. local nosounds = {146938349,245910488,150920294}
  6. local denialtexts = {"Stop ghosting you plebhole","No stop it ghosts are cringe","Error 666 ghosts are not allowed","Do not do a ghost","Void Script Builder has detected Ghosts and removed it."}
  7.  
  8. function CreateSound(ID, VOLUME, PITCH)
  9. coroutine.resume(coroutine.create(function()
  10. local NEWSOUND = Instance.new("Sound", script)
  11. NEWSOUND.Volume = VOLUME
  12. NEWSOUND.Pitch = PITCH
  13. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  14. NEWSOUND:play()
  15. game:GetService("Debris"):AddItem(NEWSOUND, 15)
  16. end))
  17. end
  18.  
  19. ArtificialHB = Instance.new("BindableEvent", script)
  20. ArtificialHB.Name = "ArtificialHB"
  21. script:WaitForChild("ArtificialHB")
  22. script.ArtificialHB:Fire()
  23.  
  24. function Swait(NUMBER)
  25. if NUMBER == 0 or NUMBER == nil then
  26. ArtificialHB.Event:wait()
  27. else
  28. for i = 1, NUMBER do
  29. ArtificialHB.Event:wait()
  30. end
  31. end
  32. end
  33.  
  34. script.Parent = workspace
  35. CreateSound(322887740,2,1)
  36. while true do
  37. wait()
  38. m = workspace.Camera:GetChildren()
  39. for i = 1, #m do
  40. if m[i].ClassName == "Model" then
  41. CreateSound(nosounds[math.random(1, #nosounds)],2,1)
  42. block = Instance.new("Part")
  43. block.Parent = workspace
  44. block.CFrame = m[i].Torso.CFrame
  45. block.Transparency = 1
  46. block.Anchored = true
  47. block.CanCollide = false
  48. local naeeym2 = Instance.new("BillboardGui",block)
  49. naeeym2.AlwaysOnTop = true
  50. naeeym2.Size = UDim2.new(5,35,2,35)
  51. naeeym2.StudsOffset = Vector3.new(0,1,0)
  52. naeeym2.Adornee = block
  53. naeeym2.Name = "Name"
  54. local tecks2 = Instance.new("TextLabel",naeeym2)
  55. tecks2.BackgroundTransparency = 1
  56. tecks2.TextScaled = true
  57. tecks2.BorderSizePixel = 0
  58. tecks2.Text = denialtexts[math.random(1, #denialtexts)]
  59. tecks2.Font = "SourceSans"
  60. tecks2.TextSize = 30
  61. tecks2.TextStrokeTransparency = 0
  62. tecks2.TextColor3 = Color3.new(0.8,0.8,0.8)
  63. tecks2.TextStrokeColor3 = Color3.new(0.2,0.2,0.2)
  64. tecks2.Size = UDim2.new(1,0,0.5,0)
  65. tecks2.Parent = naeeym2
  66. game:GetService("Debris"):AddItem(block, 5)
  67. m[i]:remove()
  68. end
  69. end
  70. end
Add Comment
Please, Sign In to add comment