How do I detect when a player presses enter once done typing?
I've tried to figure out when a player when a player has finished typing and pressed enter and setting the music player id to that
1 | script.Parent.InputEnded:Connect( function () |
2 | script.Parent.Parent.Parent.Parent.Parent.Sound.SoundId = script.Parent.Text |
3 | script.Parent.Parent.Parent.Parent.Parent.Sound.Playing = true |
Though when a player presses enter it does not do anything.
How would I detect it when they press enter? Also I tried printing something before we set the sound and it did not print anything, so I did print(123) right before doing script.Parent.Parent.Parent.Parent.Parent.Sound.SoundId = script.Parent.Text
Please show me how to detect when they finished typing and pressed enter.