Can you loop this script?

local brick = script.Parent
local sound = script.Parent.Sound
debounce = false

brick.Touched:connect(function(hit)
player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player and not debounce then
debounce = true
play = sound:Clone()
play.Parent = player.PlayerGui
play:Play()
wait(5)
debounce = false
end
end)

5 comments

0

Loop it how? You're probably new, you need to be more specific(Or the moderators[I'm a moderator] will ban your question.)

0

Why do you need it to loop, how, when??

2

There is not really anything to "Loop". We need a better explanation.

0

Exactly! Oh, and NotsoPenguin, you're at 91, so close.

0

It's a touched event... ????