I need help with roblox messages

I need help with roblox messages

i scripted a code and this code not work

game.ReplicatedStorage.Client.Remotes.SendMessage:FireClient("Inventory", "You Pickup: " .. itemValue.Name);

the send message code (this is a Local Script) :

local event = game.ReplicatedStorage.Client.Remotes.SendMessage;
local guiService = game:GetService("StarterGui");
event.OnClientEvent:Connect(function(Title2, Text2)
	guiService:SetCore("SendNotification", {
		Title = Title2;
		Text = Text2;
		Icon = "rbxassetid://4669232804";
		Duration = 5;
	})
end);
1 Like
game.ReplicatedStorage.Client.Remotes.SendMessage:FireClient("Inventory", "You Pickup: " .. itemValue.Name);

I believe you need to provide the client you want to fire it to.

Example:

game.ReplicatedStorage.Client.Remotes.SendMessage:FireClient(Player1,"Inventory", "You Pickup: " .. itemValue.Name);
2 Likes

Firing to non-player looks like…

3 Likes