Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.ReplicatedStorage.JoinLoggers.Joined.OnClientEvent:Connect(function(pr)
- if pr.Name == "OrangeDude4221" or pr.Name == "Nadylin" or pr.Name == "Joshylin" then
- game:GetService("SoundService"):PlayLocalSound(script.Parent.Notifications.Developer)
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Icon = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. pr.UserId .. "&width=420&height=420&format=png",
- Title = "Developer Joined",
- Text = "Co-Founder " .. pr.Name .. " has connected the server.",
- Duration = 6
- })
- else
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Icon = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. pr.UserId .. "&width=420&height=420&format=png",
- Title = "Player Joined",
- Text = pr.Name .. " has connected to the server.",
- Duration = 4
- })
- end
- end)
- game.ReplicatedStorage.JoinLoggers.Leave.OnClientEvent:Connect(function(pr)
- if pr.Name == "" then
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Icon = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. pr.UserId .. "&width=420&height=420&format=png",
- Title = "Player Left",
- Text = "Co-Founder " .. pr.Name .. " has left the server.",
- Duration = 6
- })
- else
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Icon = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. pr.UserId .. "&width=420&height=420&format=png",
- Title = "Player Left",
- Text = pr.Name .. " has disconnected from the server.",
- Duration = 4
- })
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement