Advertisement
cotlonmastdacoder

hax1

Jan 19th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. local function SendNotification(title,text,duration,...)
  2. game.StarterGui:SetCore("SendNotification", {
  3. Title = title;
  4. Text = text;
  5. Icon = "";
  6. Duration = duration;
  7. })
  8. end
  9.  
  10. game.Players.ChildAdded:Connect(function(player)
  11. if not pcall (function()
  12. SendNotification("Player Joined",""..player.Name.." Has joined the server",2.5 )
  13. end) then
  14. print ("Error")
  15. end
  16. end)
  17.  
  18. game.Players.ChildRemoved:Connect(function(player)
  19. if not pcall (function()
  20. SendNotification("Player Left",""..player.Name.." Has rage quit",2.5 )
  21. end) then
  22. print ("Error")
  23. end
  24. end)
  25. for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do
  26. if v.Name == "PurchasePromptApp" then
  27. v:Remove()
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement