Hey there,new scripter here
I'm not sure if i have miss placed something but the debounce doens't seem to be working, Anytime i try and move it i get End expected errors?
local host = script.Parent
local myThread = coroutine.running()
debounce=true
function continueColorChange()
coroutine.resume(myThread)
end
if debounce == true then
debounce = false
host.Touched:Connect(continueColorChange)
script.Parent.Touched:Connect(function(hit)
wait(.5)
host:Destroy()
game.ReplicatedStorage.dialogTrigger:FireAllClients()
wait(10)
debounce = true
end)

2 comments
Thanks buster!
np