Hello!
I’ve been experimenting with the core notifications for my game, but I’ve ran into a problem. My notifications are sending fine, but I’m not getting any response from clicking the options. What’s going wrong?
Server Script
local callbackfunction = Instance.new("BindableFunction")
callbackfunction.OnInvoke = function(text)
print(text)
end
game.ReplicatedStorage.sendnotification:FireClient(game.Players:GetPlayerFromCharacter(script.Parent),{
Title = "Do you want to go back?",
Text = "Do you?",
Button1 = "Sure!",
Button2 = "Nah.",
Callback = callbackfunction,
Duration = 5
})
Local Script (Shouldn’t be the problem, the notification is sending fine.)
game.ReplicatedStorage.sendnotification.OnClientEvent:Connect(function(items)
game.StarterGui:SetCore("SendNotification",items)
end)
If you need any more information then let me know, I’ve tried to be as descriptive as possible