Advertisement
Guest User

The intruder script

a guest
Jun 11th, 2023
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local playerui = player.PlayerGui
  3. game:GetService("StarterGui"):SetCore("SendNotification", {
  4. Title = "Welcome and Enjoy"
  5. Text = " "
  6. Duration = 3
  7. });
  8.  
  9. task.spawn(function()
  10. while task.wait(1.9) do
  11. if playerui.Outside.Frame.Close.Visible == true then
  12. game:GetService("StarterGui"):SetCore("SendNotification", {
  13. Title = "The intruder is at the fuse box\n(KINDA SAFE)";
  14. Text = " ";
  15. Duration = 2;
  16. });
  17. elseif playerui.FrontDoor.Frame.Close.Visible == true then
  18. game:GetService("StarterGui"):SetCore("SendNotification", {
  19. Title = "The intruder is at the frontdoor\n(SAFE)";
  20. Text = " ";
  21. Duration = 2;
  22. });
  23. elseif playerui.Street.Frame.Close.Visible == true then
  24. game:GetService("StarterGui"):SetCore("SendNotification", {
  25. Title = "The intruder is at the street\n(SAFE)";
  26. Text = " ";
  27. Duration = 2;
  28. });
  29. elseif playerui.Hallway.Frame.Close.Visible == true then
  30. game:GetService("StarterGui"):SetCore("SendNotification", {
  31. Title = "The intruder is close \nCLOSE THE LIGHTS AND HIDE\n(DANGER)";
  32. Text = " ";
  33. Duration = 2;
  34. })
  35. elseif playerui.Vent.Frame.Close.Visible == true then
  36. game:GetService("StarterGui"):SetCore("SendNotification", {
  37. Title = "The intruder is at the vents\nCLOSE THE LIGHTS AND HIDE\n(DANGER)";
  38. Text = " ";
  39. Duration = 2;
  40. });
  41. end;
  42. end;
  43. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement