Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can I pass a function through a remote event from server to client?

I want to call fireAllClients and send a function through to it so it can carry out any arbitrary task once it gets to the client. this way I was hoping to be able to have a local script for each player that would just take the passed function value and run it.

1 answer

Yes, there are multiple types of Remote Events, I believe it's called a RemoteFunction, although it's programmed differently, check out the DevFourms for how to format it

3 comments

0

Yes, I know. I was asking if you can send a function through as a parameter.

0

No you cannot, I have tried. you have to write the function, then tie it, I'm not sure how RemoteFunctions work but thats how it much be done

0

must* fast typer:)

This discussion is preserved as it was. New answers, comments, and votes are closed.