local RankChange = game.ReplicatedStorage.AdminPanelEvents.RankEvents.RankChange
local RankList = {"Default","Fan","VIP","YouTuber","Builder","Mod","Moderator","Admin","Owner"}
local player = game.Players.LocalPlayer
local PlayerName = script.Parent.Parent.PlayerName
local RankName = script.Parent.Parent.RankName
local db = false
script.Parent.MouseButton1Click:Connect(function()
if db == false then
db = true
if game.Players:FindFirstChild(PlayerName.Text) then
for i, v in pairs(RankList) do
if RankName.Text == v then
print(player.Name.." has changed "..PlayerName.Text.."'s rank to "..RankName.Text)
RankChange:FireServer(PlayerName.Text, RankName.Text)
wait(0.5)
game.StarterGui:SetCore("SendNotification",{
Title = "Rank Change";
Text = "You changed "..PlayerName.Text.."'s rank to "..RankName.Text.."!"
})
db = false
end
end
end
end
end)
COMMUNITY QUESTION
How could i send others notificaitions using the StarterGui:SetCore("SendNotifications")?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
When the players rank changes i want them to get a notification so they know