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.

1 comment
No, only you can use that in TextButton