Tree_hub

Intruder

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