I am making an SCP game and I am scripting for SCP 173. Here's the script:
local part = script.Parent part.Touched:Connect(function(hit) local hum = hit.Parent:FindFirstChild("Union") if hum then repeat script.Parent.Anchored = true print("Player see") wait(1) until hum == nil elseif hum == nil then repeat script.Parent.Anchored = false print("player ignore") wait(1) until hum end end)
i am trying to do a repeat but it just doesn't stop. Help appreciated!