Earlier today I asked how to do something like a raw_input from Python in LUA. I got my answer and it worked in Roblox Studio. But, in an actual server, it does not. Hopefully someone can help me! Thank you.
The script:
local input = script.Parent.TextBox local output = script.Parent.TextLabel
local function raw_input(prompt) local text = "" output.Text = prompt input:CaptureFocus() local event = input.FocusLost:connect(function(enterPressed) if enterPressed and input.Text ~= "" then text = input.Text else input:CaptureFocus() end end) repeat wait() until text ~= "" return text end
local response = raw_input("What is your name?")
The game: https://www.roblox.com/games/415162802/wip