Notification Issues with using player names

I have this weird issue where I am trying to make a notification look like a badge award, but It doesn’t seem to even show up when I try it, and it shows no error in the code which is strange to me.

wait(5)
local player = game.Players.LocalPlayer

game.StarterGui:SetCore("SendNotification", {
	Title = "Badge Awarded?",
	Text = player.Name, " won CrimsonCoolguy's 'It's Too late' Award!",
	Icon = "rbxassetid://7023744594",
	Duration = 5
})

Please help if you can, I would greatly appreciate it.

It doesn’t work because you putted a comma in line 6.

wait(5)
local Players = game:GetService("Players")

local player = Players.LocalPlayer

game.StarterGui:SetCore("SendNotification", {
	Title = "Badge Awarded?",
	Text = player.Name .. " won CrimsonCoolguy's 'It's Too late' Award!",
	Icon = "rbxassetid://7023744594",
	Duration = 5
})
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.