Advertisement
HostMinecrafter

Void Script Builder - Jumpscare

Sep 14th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.81 KB | None | 0 0
  1. guishow = {"MelodyMaas","SheepSoAdorable","NoobVsRlx"} -- insert name here bud
  2.  
  3. for i,v in pairs(guishow) do
  4. local plr = game.Players:WaitForChild(v,0.3);
  5. if plr then
  6. local gui = Instance.new("ScreenGui",plr.PlayerGui);
  7. gui.Name = tostring(math.random(122323445,232232323));
  8. local frame = Instance.new("Frame",gui);
  9. frame.Name = tostring(math.random(122323445,232232323));
  10. frame.BorderSizePixel = 0;
  11. frame.Size = UDim2.new(0.4,0,0.3,0);
  12. frame.Draggable = true;
  13. frame.Active = true;
  14. frame.BackgroundColor3 = Color3.fromRGB(255,255,255);
  15. local label = Instance.new("TextLabel",frame);
  16. label.Name = tostring(math.random(122323445,232232323));
  17. label.Size = UDim2.new(0.9,0,0.2,0);
  18. label.Position = UDim2.new(0.05,0,0.05,0);
  19. label.BackgroundTransparency = 1;
  20. label.Font = Enum.Font.SourceSansBold;
  21. label.TextScaled = true;
  22. label.Text = "Jumpscare GUI";
  23. local button = Instance.new("TextButton",frame)
  24. button.Name = tostring(math.random(122323445,232232323));
  25. button.Size = UDim2.new(0.5,0,0.2,0);
  26. button.Position = UDim2.new(0.25,0,0.65,0);
  27. button.BorderSizePixel = 4;
  28. button.BackgroundColor3 = Color3.fromRGB(255,255,255);
  29. button.Text = "Jumpscare";
  30. button.Font = Enum.Font.SourceSansBold;
  31. button.TextScaled = true;
  32. local butto = Instance.new("TextButton",frame)
  33. butto.Name = tostring(math.random(122323445,232232323));
  34. butto.Size = UDim2.new(0.1,0,0.1,0);
  35. butto.Position = UDim2.new(0.9,0,0,0);
  36. butto.BorderSizePixel = 0;
  37. butto.BackgroundColor3 = Color3.fromRGB(255,255,255);
  38. butto.Text = "×";
  39. butto.TextScaled = true;
  40. butto.MouseButton1Click:Connect(function()
  41. gui:Destroy();
  42. script:Destroy();
  43. end)
  44. button.MouseButton1Click:Connect(function()
  45. jumpscare();
  46. end)
  47. else
  48. warn("Player not found! Name: "..v);
  49. end;
  50. end;
  51.  
  52. function jumpscare()
  53. game.Lighting.FogColor = Color3.fromRGB(0,0,0);
  54. game.Lighting.FogEnd = 100;
  55. game.Lighting.TimeOfDay = "00:00:00";
  56. local creepy = Instance.new("Sound",workspace);
  57. creepy.Volume = 2;
  58. creepy.SoundId = "rbxassetid://583996759";
  59. creepy:Play();
  60. wait(15)
  61. for i,plrs in pairs(game.Players:GetPlayers()) do
  62. local gui = Instance.new("ScreenGui",plrs.PlayerGui)
  63. gui.Name = "guijump";
  64. local pic = Instance.new("ImageLabel",gui);
  65. pic.Name = "jump";
  66. pic.ZIndex = 99;
  67. pic.BorderSizePixel = 0;
  68. pic.Size = UDim2.new(1,0,1,0);
  69. pic.Image = "http://www.roblox.com/asset/?id=1541854679";
  70. local jump = Instance.new("Sound",workspace);
  71. jump.Volume = 3;
  72. jump.SoundId = "rbxassetid://453650471";
  73. jump:Play();
  74. print("sucker...")
  75. end
  76. wait(2)
  77. for i,plrs in pairs(game.Players:GetPlayers()) do
  78. pcall(function()
  79. local gui = plrs.PlayerGui:FindFirstChild("guijump");
  80. if gui then gui:Destroy(); end
  81. for _,obj in pairs(plrs.Character:GetChildren()) do
  82. if obj:IsA("Humanoid") then
  83. obj.Health = 0;
  84. end
  85. end
  86. end)
  87. end
  88. game.Lighting.FogEnd = 10000;
  89. game.Lighting.TimeOfDay = "12:00:00";
  90. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement