#Communicating to Actors

1 messages · Page 1 of 1 (latest)

patent cobalt
#

currently I am using a BindableEvent held in Replicated Stoarage and everything is held in the Client. Here are some code snippets.

this is the main thread

BindableEvent.Event:Connect(function(result)
        print("main thread recieved")
        self:OnActorResult(result)
    end)
--....
      actor:SendMessage("ProcessSegment", params)    

this is in a local script on the Actor side
Actors are stored in workspace in a folder(idk if that matters)

--Actor = script.Parent
script.Parent:BindToMessage("ProcessSegment", function(params)
        if event then
        event:Fire(results)
    end
end
patent cobalt
#

by the way, I am creating the Actor instance and cloning a Local script into it

reef vale
#

Localscripts that are a descendant of workspace don't run twin move the script to RS

patent cobalt
#

thank you

reef vale
#

Ikr

desert edge
#

UR A IDIOT