I'm trying to get the server to require a variable which obviously doesn't work. Can someone point me in the right direction on how to translate this thing in order for the server to recognize it? I've tried tonumber() and tostring() but it still wouldn't work. Thanks.
local variable = 2621001203 require(variable)
Lua:Require only works for module scripts, which loads in a ModuleScript for a predefined library(it would be the ModuleScript since this is Roblox Lua).
I am assuming that you want to require a ModuleScript, you can just
local ModuleScript = require(ASSETID OF MODULE)
If you want to use the module, you can use the variable and use it's contents
-- This module is in Workspace local module = {} local function module.Printer() print("test") end return module
You would access it by
local MDScript = require(game.Workspace.ModuleScript) MDScript.Printer() -- Alternatively require(game.Workspace.ModuleScript).Printer()