Howdy folks. I’m a relatively new member here and this will be first my topic, so please excuse me if I get anything on here wrong. Anyways, to the problem:
I am utilizing the StarterGui:SetCore(“SendNotification”) system to create an easy way to notify the game when a group HR enters my game. The problem is, it doesn’t work. I’ve used pcall() functions and there are no errors. It returns a success just fine. I have used the wiki and tried every solution I can think of to this problem, but for some reason, it just doesn’t work. Maybe it’s a Roblox thing, maybe it is my code and I just didn’t see it?
Dev-Wiki Article I’m Using:
https://gyazo.com/57cc199fb974e9c0fe5d34ddf35f1f31
Example of Problem:
https://gyazo.com/d460ae712b3a235209bb668749eea37f
This is the ONLY output in console regarding this issue.
Clientside Code:
local sgui = game:GetService("StarterGui"); -- located elsewhere, but here for example
--[[
plrname - string value, player name
grole - string value, group ROLE (not RANK)
gtitle - string value, title for notification (Ex: "SCPF HR Has Entered")
gicon - string value, url link to group icon (retrieved from GroupService:GetGroupInfoAsync().EmblemUrl)
]]
Network:add("adminentered",function(plrname,grole,gtitle,gicon)
local Success,ErrorMessage = pcall(function()
sgui:SetCore("SendNotification",{gtitle,plrname.." :: "..grole,gicon,notifDur,onNotifClicked});
end)
if Success ~= true then error(ErrorMessage); else print('SCPF HR Has Entered.'); end
end)
The server transfers everything fine. The client receives it all. The pcall returns true (as seen in the output), so I’m lost here.
Thank you to anyone that helps. This issue isn’t extremely critical to me right now as there are more important parts of the game, but your help is appreciated.