Advertisement
Guest User

LITTLE DREAMIES DAYCARE SCRIPT

a guest
May 1st, 2019
4,359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. game.ReplicatedStorage.JoinLoggers.Joined.OnClientEvent:Connect(function(pr)
  2. if pr.Name == "OrangeDude4221" or pr.Name == "Nadylin" or pr.Name == "Joshylin" then
  3. game:GetService("SoundService"):PlayLocalSound(script.Parent.Notifications.Developer)
  4. game:GetService("StarterGui"):SetCore("SendNotification", {
  5. Icon = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. pr.UserId .. "&width=420&height=420&format=png",
  6. Title = "Developer Joined",
  7. Text = "Co-Founder " .. pr.Name .. " has connected the server.",
  8. Duration = 6
  9. })
  10. else
  11. game:GetService("StarterGui"):SetCore("SendNotification", {
  12. Icon = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. pr.UserId .. "&width=420&height=420&format=png",
  13. Title = "Player Joined",
  14. Text = pr.Name .. " has connected to the server.",
  15. Duration = 4
  16. })
  17. end
  18. end)
  19. game.ReplicatedStorage.JoinLoggers.Leave.OnClientEvent:Connect(function(pr)
  20. if pr.Name == "" then
  21. game:GetService("StarterGui"):SetCore("SendNotification", {
  22. Icon = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. pr.UserId .. "&width=420&height=420&format=png",
  23. Title = "Player Left",
  24. Text = "Co-Founder " .. pr.Name .. " has left the server.",
  25. Duration = 6
  26. })
  27. else
  28. game:GetService("StarterGui"):SetCore("SendNotification", {
  29. Icon = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. pr.UserId .. "&width=420&height=420&format=png",
  30. Title = "Player Left",
  31. Text = pr.Name .. " has disconnected from the server.",
  32. Duration = 4
  33. })
  34. end
  35. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement