Hi everyone,
I wanted to find out how to test if a player is always touching a block? I am making a terminal script
SCRIPT /
function onTouch(part)
script.Parent.Parent.Screen.SurfaceGui.Bar.Progress.True.Value = true
end
while wait(1) do
script.Parent.Touched:connect(onTouch)
end
How would I do that?

6 comments
Still doesn't work? I Am not sure why
try to remove "while humanoid do wait(1) end"
I mean, it works by itself, but it still counts down even when the player isn't touching it.
add an if statement to check if the humanoid still exists
Ok, all I have done is made it a click detector
lolwat? Touched and ClickDetector doesn't make any sense anyway if it works so hold the ClickDetector