Textbox not sending text into a soundid

So whats happening is that it only sends the rbxassetid part into the soundid of the sound not the actualy text in the textbox

        local ScreenGui = Player:WaitForChild("PlayerGui").ApartmentBoomBox
        local TextBox = ScreenGui.Frame.TextBox
        ScreenGui.Frame.Play.MouseButton1Down:Connect(function()
            RadioPart.SoundPart.Sound.SoundId = ("rbxassetid://" .. TextBox.Text)
            RadioPart.SoundPart.Sound:Play()
            print("Hello")
        end)

I added the print to see if it went through it did, but still wont change the soundid to the textbox’s text

It might be the MouseButton1Down, because I belive its depricated, correct me if im wrong :slight_smile:

It is not deprecated no, but ive already tried MouseButton1Click but that does the same thing.

is this a local script or a server script?

Server script, but i dont think that would make any difference?

only local scripts can see the text of a textbox. I would recommend using a remote event for this.

You know i can see why this is true thank you.