How would I run a function via the command bar in the roblox studio? i.e. if want to make a global weld function I can run both in game and in the studio, what's the best way to go about it? Could I use a module script to do this? How would I call it in studio if I used a module script? Require doesn't seem to work in studio for me.
You can use the _G
or shared
Tables. They are shared to all Scripts.
For instance:
_G.Weld = function() --code end
And in the command bar:
_G.Weld()