Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can you help fix my gui?

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?")
    output.Text = "Hello, " .. response .. "!"

The game: https://www.roblox.com/games/415162802/wip The other question I asked: https://scriptinghelpers.org/questions/31405/how-do-you-use-raw_input-from-python-in-rblx-lua

2 comments

0

What error are you getting?

0

It shows no error in Roblox Studio. It works in Roblox Studio. But, when me and my friend join a server, it doesn't work. It asks what your name is. Then you type something. and nothing else shows up like its supposed to.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.