Engine Class
Actor
*This content will be available in your selected language soon.
Summary
Methods
BindToMessage(topic: string,function: function):RBXScriptConnection |
BindToMessageParallel(topic: string,function: function):RBXScriptConnection |
SendMessage(topic: string,message: Tuple):() |
Inherited Members
26 inherited from Model
4 inherited from PVInstance
57 inherited from Instance
6 inherited from Object
API Reference
Methods
BindToMessage
Returns
Code Samples
Bind To Message
local actor = script:GetActor()
-- Print out a message when a greeting message is sent to the Actor
-- this script is a descendant of.
local connection = actor:BindToMessage("Greeting", function(message)
print("Received Greeting Message:", message)
end)BindToMessageParallel
Returns
Code Samples
Bind To Message Parallel
local actor = script:GetActor()
-- Print out a message when a greeting message is sent to the Actor
-- this script is a descendant of.
local connection = actor:BindToMessageParallel("Greeting", function(message)
print("Received Greeting Message:", message)
end)