proff001

Jump Scare

Sep 30th, 2016
157
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local me = "YourName" -- So you don't get jumpscared unless you want to.
  2. while wait() do
  3. for i,v in pairs(game.Players:GetPlayers()) do
  4. if v.Name ~= me and not v.PlayerGui:FindFirstChild("Screamer") and v:FindFirstChild("PlayerGui") then
  5. spawn(function()
  6. local newgui = Instance.new("ScreenGui",v.PlayerGui)
  7. newgui.Name = "Screamer"
  8. local newimage = Instance.new("ImageLabel",newgui)
  9. newimage.Image = "rbxassetid://142410803"
  10. newimage.Size = UDim2.new(1,0,1,0)
  11. local s = Instance.new("Sound",newgui)
  12. s.SoundId = "rbxassetid://145045371"
  13. s.Volume = 1
  14. s.Looped = true
  15. s:Play()
  16. print("Screamed "..v.Name)
  17. while wait() do
  18. newimage.ImageColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  19. wait()
  20. newimage.ImageColor3 = Color3.new(1,1,1)
  21. end
  22. end)
  23. end
  24. end
  25. end
RAW Paste Data