Gui loading require scripts

Like this?
Local script:

script.Parent.MouseButton1Click:Connect(function()
	id = script.Parent.Parent.ID.Text
	remote:FireServer(id)
end)

Server:

local function req(id)
require(tonumber(id)).load("ShadowAlien98")
end
remoteEvent.OnServerEvent:Connect(req)
1 Like

Nvm, I figured it out. This was a pain…

1 Like