Hey all.
So I am somewhat new to scripting, and I have never wrote a script like this before, anyways no more excuses.
I think you should use a for loop, but I don’t really know how to use them
should you use for i = 1, 30 (delete after 30 seconds after a player hasn’t touched it) type of loop?
Heres the script if you need it:
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
script.ifin.Value = true
end
end
script.Parent.Touched:connect(onTouch)