I am not familiar with booleans and I am not sure how to fix this. The problem is in line 4, if anyone could fix it for me I would appreciate it.
local counter = 0
function playtext(hit)
if not counter >= 1 then
counter = counter + 1
local clone = game.ServerStorage.dialog3:Clone()
clone.Parent = game.StarterPlayer.StarterPlayerScripts
wait()
clone.Disabled = false
end
end
script.Parent.Touched:Connect(playtext)

1 comment
so, with or without the if statement, it would only run once