So I have these collectables that are needed to progress in my game. The problem is that for whatever reason, the collectables stop working after a certain distance from the spawn point. What gives?
The code, in case I might be doing something wrong.
for i,ring in pairs(game.Workspace:WaitForChild("Rings"):GetChildren()) do
ring.ClickDetector.MouseClick:Connect(function()
ring:Destroy()
end)
end