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

MouseButton1Click is not a valid member of TextBox?

Asked by
innhale -2
5 years ago
script.Parent.Parent.TextBox.MouseButton1Click:Connect(function()

    local textbuttoninput = script.Parent.Parent.TextBox.Text
    local sound = script.Parent.Parent.Parent.Sound
    sound.SoundId = 'rbxassetid://'..textbuttoninput
    sound:Play()
end)


It keeps saying that MouseButton1Click is not a valid member of TextBox in the output, It had worked before until I tweened the frame it was in.

0
No, only you can use that in TextButton Ince_FS 13 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

If you look at Roblox's wiki for Textbox, at the bottom where it has events, you will see there is noMouseButton1Click

MouseButton1Click is only for buttons.

https://wiki.roblox.com/index.php?title=API:Class/TextBox

Ad

Answer this question