local stats = player:findFirstChild("leaderstats") stats.Score.Value = 0

if (not paused) then for _,v in pairs(workspace.Obstacles:GetChildren()) do v.Position = (v.Position+UDim2.new(0,-6,0,0)) --4 if ((v.Position.Y.Scale == 0) and (bird.AbsolutePosition.X > (v.AbsolutePosition.X+v.AbsoluteSize.X)) and (not same_ob(v.Name))) then stats.Score.Value = stats.Score.Value + 1 table.insert(logs,v.Name) end if (v.AbsolutePosition.X < 435) then v:Remove() end

		end

end

This should work But it doesnt , it is the part that allows the Leaderstat to go up when the bird goes through the pipe

2 comments

0

You may want to use a Code Block to format the script you posted, it'll be easier for us to read it and figure out what is going wrong that way ;)

0

Yea, use the code block I can't understand the code at all