How can i play a sound when a textbutton is clicked on just the moment it is clicked?

I would like if u would comment a script i could use to play a sound on the moment the textbutton is clicked. Thx for reading this :+1:

3 Likes

Hello @RussoTalks1253! :wave:

  • Make a ScreenGui

  • Add a TextButton inside the ScreenGui

  • Add a sound in workspace (Name the Sound โ€œSoundโ€)

  • Now add a script in the Text Button.

  • in the script type

script.Parent.MouseButton1Click:Connect(function()
    game.Workspace.Sound:Play()
end)

Hope this helped!

3 Likes

Tysm honestly thisi helped me so much

1 Like