Script Contexts are not supported in plugins

Creating a plugin with the use of script context that is not set to Legacy will not run the script. The rbxmx contains 3 Scripts, Legacy, Client, Server, the code for them are:

Only legacy prints out a message.

print(script.Name)

I have named each one to their context.

image
– Image of plugin ^
Test.rbxmx (2.8 KB)
– Reproduction plugin ^

Expected behavior

I expect the server context to run when playtesting as server or in edit mode, for the Client context I expect it to run during test-play.

A private message is associated with this bug report

What you’re seeing here is intended behavior. We actually have an additional option for RunContext that is not currently implemented called Plugin which will be the eventual way to do this.

Legacy will also work in plugins for backwards compatibility reasons and is the current way to create plugin scripts.

Oh! Thank you for telling me this, A run context just for plugins can probably be quite useful. I hope to see it have some benefits over Legacy!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.