Introducing Require-by-String

sorry if im a bit dumb, but lets say i have a client script inside the player gui. how can you get modules that are in replicatedstorage?

1 Like

Can we get this for instances too?

example:
Frame is a child of Main

local Frame = “./Main”

1 Like

okay, now this is something i didnt expect we would get. cool feature.

Something like this would be nice. GDScript from the Godot Engine has a similar feature where you put a dollar sign in front of a string like that and it would get the instance for you with less code.

var object = $"path/to/object";

=

var object = get_node("path/to/object")

I’d love to see something like this added to Roblox, but I’m afraid that they won’t since they’re aiming for Luau to be embeddable for other software systems too.

1 Like

i love it Very very use full, only weird thing is some non module things pop up