Feedback on my first ever script

Iโ€™m going to go ahead and ignore the first two replies and just address your code.

First off, while not related to the code itself, put your code in a Lua code block like so:

```lua
โ€“ Code
```

becomes

-- Code

Use the Sound.Ended event here instead; no need to reinvent the wheel. I understand you are beginner so you might reinvent the wheel a lot but eventually you find out Roblox has a built-in way of doing what you want :stuck_out_tongue:

Now I would make a reference to the sound through a variable so you donโ€™t repeat yourself.

and uh, that is it really lol

local sound = script.Parent:WaitForChild("insertid")

while true do
    wait(5)
    sound:Play()
    sound.Ended:Wait()
end
2 Likes