Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to have a Function find a object that is in lighting using a user entered name?

Asked by 10 years ago

I have a function that uses a text box and takes the user input from that and in a separate function uses that input to find an object in lighting under that name.

function onClicked()
    local item = game.Players:FindFirstChild(script.Parent.Parent.TextBoxKey.Text)
end

function findItem()
    --stuck here--
end

script.Parent.MouseButton1Click:connect(onClicked)

Would appreciate some help on the area I'm stuck on or any other advice you can give.

Answer this question