Alert
An alert sent from the InStore server.
Alert
(Message)
An alert message sent from the server. This is used for success, error, and warning messages. This is critical for notifying a user the status of their purchase if using a developer product purchase.
Parameters
Field
Type
Description
Message
string
the message from the server to the client
Example Script
local RS = game.ReplicatedStorage:WaitForChild('InStore');
local RE = RS.Event; --> The InStore RemoteEvent
function Alert(Message)
print(Message); --> The message from the server
-- You should make this a popup Gui
end
RE.OnClientEvent:Connect(function(Event, ...)
if Event == 'Alert' then
Alert(...); --> Pass the event to the alert function
end
end)
Last updated
Was this helpful?