There are a couple errors here and it’s mainly with where you put the ends. You need to put an end after each if statement. Also, you don’t need an end with a closing parentheses in this example.
I may have made mistakes because I’m in a rush right now
You are missing an end statement. The fixed one should look this:
Sound:Play()
print(“Successfully playing music.”)
if Sound.Playing == false then
Sound.Playing = true
print(“Attempted to fix music.”)
wait(3)
if Sound.Playing == true then
print(“Successfully fixed music!”)
end
end
Although I have no idea why would you ever need a script like this but you do you.